ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilShopGUI Class Reference

Class ilShopGUI. More...

+ Inheritance diagram for ilShopGUI:
+ Collaboration diagram for ilShopGUI:

Public Member Functions

 __construct ()
 executeCommand ()
 clearFilter ()
 getPageHTML ()
 forwardToPageObject ()
 setFilter ()
 resetFilter ()
 setSorting ()
 performSearch ($oResult=null)
 showShopContent ($oResult)
 setTopicId ($a_topic_id)
 getTopicId ()
 setString ($a_str)
 getString ()
 setType ($a_type)
 getType ()
 setSortDirection ($a_sort_direction)
 getSortDirection ()
 setSortField ($a_field)
 getSortField ()
 setSortingTypeTopics ($a_field)
 getSortingTypeTopics ()
 setSortingDirectionTopics ($a_sort_direction)
 getSortingDirectionTopics ()

Data Fields

const SHOP_PAGE_EDITOR_PAGE_ID = 99999999

Protected Member Functions

 prepareOutput ()
- Protected Member Functions inherited from ilShopBaseGUI
 addPager ($result, $a_session_key)
 buildSubTabs ()
 setSection ($a_section)
 getSection ()
 setSubSection ($a_sub_section)
 getSubSection ()
 showButton ($a_cmd, $a_text, $a_target= '')
 initTableGUI ()
 setTableGUIBasicData ($tbl, $result_set, $a_default_order_column= '')

Private Attributes

 $sort_type_topics = ''
 $sort_direction_topics = ''
 $sort_field = ''
 $sort_direction = ''
 $string = ''
 $type = ''
 $topic_id = 0

Additional Inherited Members

- Protected Attributes inherited from ilShopBaseGUI
 $ctrl = null
 $ilias = null
 $lng = null
 $tpl = null
 $oGeneralSettings = null
 $section = 0
 $sub_section = 0

Detailed Description

Constructor & Destructor Documentation

ilShopGUI::__construct ( )

Reimplemented from ilShopBaseGUI.

Definition at line 47 of file class.ilShopGUI.php.

References $_SESSION, setSortDirection(), setSortField(), setSortingDirectionTopics(), setSortingTypeTopics(), setString(), setTopicId(), and setType().

{
// set filter settings
$this->setType($_SESSION['shop_content']['type']);
$this->setString($_SESSION['shop_content']['text']);
$this->setTopicId($_SESSION['shop_content']['shop_topic_id']);
// set sorting
$this->setSortingTypeTopics($_SESSION['shop_content']['order_topics_sorting_type']);
$this->setSortingDirectionTopics($_SESSION['shop_content']['shop_topics_sorting_direction']);
$this->setSortField($_SESSION['shop_content']['shop_order_field']);
$this->setSortDirection($_SESSION['shop_content']['shop_order_direction']);
}

+ Here is the call graph for this function:

Member Function Documentation

ilShopGUI::clearFilter ( )

Definition at line 92 of file class.ilShopGUI.php.

References performSearch(), setString(), setTopicId(), and setType().

{
$this->setString('');
$this->setType('');
$this->setTopicId(0);
return $this->performSearch();
}

+ Here is the call graph for this function:

ilShopGUI::executeCommand ( )

Definition at line 63 of file class.ilShopGUI.php.

References $cmd, $ret, forwardToPageObject(), and prepareOutput().

{
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
switch($next_class)
{
case 'ilpageobjectgui':
$this->prepareOutput();
if($ret != '')
{
$this->tpl->setContent($ret);
}
break;
default:
if(!$cmd)
{
$cmd = 'performSearch';
}
$this->prepareOutput();
$this->$cmd();
break;
}
return true;
}

+ Here is the call graph for this function:

ilShopGUI::forwardToPageObject ( )

Definition at line 134 of file class.ilShopGUI.php.

References ilShopBaseGUI\$lng, ilPageObject\_exists(), and ilObjStyleSheet\getContentStylePath().

Referenced by executeCommand().

{
global $lng, $ilTabs;
$ilTabs->clearTargets();
$ilTabs->setBackTarget($lng->txt('back'), $this->ctrl->getLinkTarget($this), '_top');
// page object
include_once 'Services/COPage/classes/class.ilPageObject.php';
include_once 'Services/COPage/classes/class.ilPageObjectGUI.php';
$lng->loadLanguageModule('content');
include_once('./Services/Style/classes/class.ilObjStyleSheet.php');
$this->tpl->setVariable('LOCATION_CONTENT_STYLESHEET', ilObjStyleSheet::getContentStylePath(0));
if(!ilPageObject::_exists('shop', self::SHOP_PAGE_EDITOR_PAGE_ID))
{
// doesn't exist -> create new one
$new_page_object = new ilPageObject('shop');
$new_page_object->setParentId(0);
$new_page_object->setId(self::SHOP_PAGE_EDITOR_PAGE_ID);
$new_page_object->createFromXML();
}
$this->ctrl->setReturnByClass('ilpageobjectgui', 'edit');
$page_gui = new ilPageObjectGUI('shop', self::SHOP_PAGE_EDITOR_PAGE_ID);
$page_gui->setIntLinkHelpDefault('StructureObject', self::SHOP_PAGE_EDITOR_PAGE_ID);
$page_gui->setTemplateTargetVar('ADM_CONTENT');
$page_gui->setLinkXML('');
$page_gui->setFileDownloadLink($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'downloadFile'));
$page_gui->setFullscreenLink($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'displayMediaFullscreen'));
$page_gui->setSourcecodeDownloadScript($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'download_paragraph'));
$page_gui->setPresentationTitle('');
$page_gui->setTemplateOutput(false);
$page_gui->setHeader('');
$page_gui->setEnabledRepositoryObjects(false);
$page_gui->setEnabledFileLists(true);
$page_gui->setEnabledMaps(true);
$page_gui->setEnabledPCTabs(true);
return $this->ctrl->forwardCommand($page_gui);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilShopGUI::getPageHTML ( )

Definition at line 101 of file class.ilShopGUI.php.

References ilPageObject\_exists(), and ilObjStyleSheet\getContentStylePath().

Referenced by showShopContent().

{
// page object
include_once 'Services/COPage/classes/class.ilPageObject.php';
include_once 'Services/COPage/classes/class.ilPageObjectGUI.php';
// if page does not exist, return nothing
if(!ilPageObject::_exists('shop', self::SHOP_PAGE_EDITOR_PAGE_ID))
{
return '';
}
include_once 'Services/Style/classes/class.ilObjStyleSheet.php';
$this->tpl->setVariable('LOCATION_CONTENT_STYLESHEET', ilObjStyleSheet::getContentStylePath(0));
// get page object
$page_gui = new ilPageObjectGUI('shop', self::SHOP_PAGE_EDITOR_PAGE_ID);
$page_gui->setIntLinkHelpDefault('StructureObject', self::SHOP_PAGE_EDITOR_PAGE_ID);
$page_gui->setLinkXML('');
$page_gui->setFileDownloadLink($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'downloadFile'));
$page_gui->setFullscreenLink($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'displayMediaFullscreen'));
$page_gui->setSourcecodeDownloadScript($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'download_paragraph'));
$page_gui->setPresentationTitle('');
$page_gui->setTemplateOutput(false);
$page_gui->setHeader('');
$page_gui->setEnabledRepositoryObjects(false);
$page_gui->setEnabledFileLists(true);
$page_gui->setEnabledPCTabs(true);
$page_gui->setEnabledMaps(true);
return $page_gui->showPage();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilShopGUI::getSortDirection ( )

Definition at line 486 of file class.ilShopGUI.php.

References $sort_direction.

Referenced by performSearch(), and showShopContent().

{
}

+ Here is the caller graph for this function:

ilShopGUI::getSortField ( )

Definition at line 494 of file class.ilShopGUI.php.

References $sort_field.

Referenced by performSearch(), and showShopContent().

{
}

+ Here is the caller graph for this function:

ilShopGUI::getSortingDirectionTopics ( )

Definition at line 526 of file class.ilShopGUI.php.

References $sort_direction_topics.

Referenced by performSearch(), and showShopContent().

+ Here is the caller graph for this function:

ilShopGUI::getSortingTypeTopics ( )

Definition at line 510 of file class.ilShopGUI.php.

References $sort_type_topics, ilShopTopics\TOPICS_SORT_BY_TITLE, and ilShopTopics\TOPICS_SORT_MANUALLY.

Referenced by performSearch(), and showShopContent().

{
global $ilUser;
if(ANONYMOUS_USER_ID == $ilUser->getId() &&
$this->sort_type_topics == ilShopTopics::TOPICS_SORT_MANUALLY)
{
$this->sort_type_topics = ilShopTopics::TOPICS_SORT_BY_TITLE;
}
}

+ Here is the caller graph for this function:

ilShopGUI::getString ( )

Definition at line 470 of file class.ilShopGUI.php.

References $string.

Referenced by performSearch(), and showShopContent().

{
return $this->string;
}

+ Here is the caller graph for this function:

ilShopGUI::getTopicId ( )

Definition at line 462 of file class.ilShopGUI.php.

References $topic_id.

Referenced by performSearch(), and showShopContent().

{
}

+ Here is the caller graph for this function:

ilShopGUI::getType ( )

Definition at line 478 of file class.ilShopGUI.php.

References $type.

Referenced by performSearch(), and showShopContent().

{
return $this->type;
}

+ Here is the caller graph for this function:

ilShopGUI::performSearch (   $oResult = null)

Definition at line 213 of file class.ilShopGUI.php.

References $_GET, $res, ilShopTopics\_getInstance(), ilObjectSearchFactory\_getShopMetaDataSearchInstance(), ilObjectSearchFactory\_getShopObjectSearchInstance(), ilShopBaseGUI\addPager(), getSortDirection(), getSortField(), getSortingDirectionTopics(), getSortingTypeTopics(), getString(), getTopicId(), getType(), QP_COMBINATION_AND, ilUtil\sendInfo(), SHOP_CONTENT, showShopContent(), and ilUtil\stripSlashes().

Referenced by clearFilter(), resetFilter(), setFilter(), and setSorting().

{
global $ilUser;
if(!is_object($oResult))
{
$oResult = new ilShopSearchResult(SHOP_CONTENT);
if((bool)$this->oGeneralSettings->get('topics_allow_custom_sorting'))
{
ilShopTopics::_getInstance()->setIdFilter((int)$this->getTopicId());
ilShopTopics::_getInstance()->enableCustomSorting(true);
ilShopTopics::_getInstance()->setSortingType((int)$this->getSortingTypeTopics());
ilShopTopics::_getInstance()->setSortingDirection(strtoupper($this->getSortingDirectionTopics()));
}
else
{
ilShopTopics::_getInstance()->setIdFilter((int)$this->getTopicId());
ilShopTopics::_getInstance()->enableCustomSorting(false);
ilShopTopics::_getInstance()->setSortingType((int)$this->oGeneralSettings->get('topics_sorting_type'));
ilShopTopics::_getInstance()->setSortingDirection(strtoupper($this->oGeneralSettings->get('topics_sorting_direction')));
}
$oResult->setTopics(ilShopTopics::_getInstance()->getTopics());
$oResult->setResultPageNumber((int)$_GET['page_number']);
}
// query parser
include_once 'Services/Search/classes/class.ilQueryParser.php';
$query_parser = new ilQueryParser(ilUtil::stripSlashes($this->getString()));
$query_parser->setMinWordLength(0);
$query_parser->setCombination(QP_COMBINATION_AND);
$query_parser->parse();
if (!$query_parser->validate())
{
ilUtil::sendInfo($query_parser->getMessage());
}
// search
$types = array('crs', 'lm', 'sahs', 'htlm', 'file', 'tst');
if ($this->getType() == '' || $this->getType() == 'title' ||
$query_parser->getQueryString() == '')
{
include_once 'Services/Search/classes/class.ilObjectSearchFactory.php';
$object_search = ilObjectSearchFactory::_getShopObjectSearchInstance($query_parser);
$object_search->setFields(array('title'));
$object_search->setFilter($types);
$object_search->setCustomSearchResultObject($oResult);
$object_search->setFilterShopTopicId((int)$this->getTopicId());
$res = $object_search->performSearch();
}
else if($this->getType() == 'author')
{
include_once 'Services/Search/classes/class.ilObjectSearchFactory.php';
$meta_search->setMode('contribute');
$meta_search->setFilter($types);
$meta_search->setFilterShopTopicId((int)$this->getTopicId());
$meta_search->setCustomSearchResultObject($oResult);
$res = $meta_search->performSearch();
}
else
{
include_once 'Services/Search/classes/class.ilObjectSearchFactory.php';
$meta_search->setMode('title');
$meta_search->setFilter($types);
$meta_search->setCustomSearchResultObject($oResult);
$meta_search->setFilterShopTopicId((int)$this->getTopicId());
$res = $meta_search->performSearch();
$meta_search->setMode('keyword');
$meta_search->setFilter($types);
$meta_search->setCustomSearchResultObject($oResult);
$meta_search->setFilterShopTopicId((int)$this->getTopicId());
$res->mergeEntries($meta_search->performSearch());
}
$res->filter(ROOT_FOLDER_ID, true);
$res->save();
if(!count($res->getResults()))
{
ilUtil::sendInfo($this->lng->txt('payment_shop_not_objects_found'));
}
include_once 'Services/Payment/classes/class.ilShopResultPresentationGUI.php';
$search_result_presentation = new ilShopResultPresentationGUI($res);
$search_result_presentation->setSortField(strtolower(trim($this->getSortField())));
$search_result_presentation->setSortDirection(trim($this->getSortDirection()));
$this->tpl->setVariable('RESULTS', $search_result_presentation->showResults());
$this->addPager($res, 'shop_content_maxpage');
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilShopGUI::prepareOutput ( )
protected

Reimplemented from ilShopBaseGUI.

Definition at line 531 of file class.ilShopGUI.php.

Referenced by executeCommand().

{
global $ilTabs;
$ilTabs->setTabActive('content');
}

+ Here is the caller graph for this function:

ilShopGUI::resetFilter ( )

Definition at line 190 of file class.ilShopGUI.php.

References performSearch(), setString(), setTopicId(), and setType().

{
$this->setString('');
$this->setType('');
$this->setTopicId(0);
$this->performSearch();
return true;
}

+ Here is the call graph for this function:

ilShopGUI::setFilter ( )

Definition at line 179 of file class.ilShopGUI.php.

References performSearch(), setString(), setTopicId(), and setType().

{
$this->setString($_POST['filter_text']);
$this->setType($_POST['sel_filter_type']);
$this->setTopicId($_POST['filter_topic_id']);
$this->performSearch();
return true;
}

+ Here is the call graph for this function:

ilShopGUI::setSortDirection (   $a_sort_direction)

Definition at line 482 of file class.ilShopGUI.php.

References $_SESSION.

Referenced by __construct(), and setSorting().

{
$_SESSION['shop_content']['order_direction'] = $this->sort_direction = $a_sort_direction;
}

+ Here is the caller graph for this function:

ilShopGUI::setSortField (   $a_field)

Definition at line 490 of file class.ilShopGUI.php.

References $_SESSION.

Referenced by __construct(), and setSorting().

{
$_SESSION['shop_content']['shop_order_field'] = $this->sort_field = $a_field;
}

+ Here is the caller graph for this function:

ilShopGUI::setSorting ( )

Definition at line 201 of file class.ilShopGUI.php.

References performSearch(), setSortDirection(), setSortField(), setSortingDirectionTopics(), and setSortingTypeTopics().

{
$this->setSortingTypeTopics($_POST['topics_sorting_type']);
$this->setSortingDirectionTopics($_POST['topics_sorting_direction']);
$this->setSortField($_POST['order_field']);
$this->setSortDirection($_POST['order_direction']);
$this->performSearch();
return true;
}

+ Here is the call graph for this function:

ilShopGUI::setSortingDirectionTopics (   $a_sort_direction)

Definition at line 522 of file class.ilShopGUI.php.

References $_SESSION.

Referenced by __construct(), and setSorting().

{
$_SESSION['shop_content']['shop_topics_sorting_direction'] = $this->sort_direction_topics = $a_sort_direction;
}

+ Here is the caller graph for this function:

ilShopGUI::setSortingTypeTopics (   $a_field)

Definition at line 498 of file class.ilShopGUI.php.

References $_SESSION, ilShopTopics\TOPICS_SORT_BY_TITLE, and ilShopTopics\TOPICS_SORT_MANUALLY.

Referenced by __construct(), and setSorting().

{
global $ilUser;
if(ANONYMOUS_USER_ID == $ilUser->getId() &&
{
}
$_SESSION['shop_content']['order_topics_sorting_type'] = $this->sort_type_topics = $a_field;
}

+ Here is the caller graph for this function:

ilShopGUI::setString (   $a_str)

Definition at line 466 of file class.ilShopGUI.php.

References $_SESSION.

Referenced by __construct(), clearFilter(), resetFilter(), and setFilter().

{
$_SESSION['shop_content']['text'] = $this->string = $a_str;
}

+ Here is the caller graph for this function:

ilShopGUI::setTopicId (   $a_topic_id)

Definition at line 458 of file class.ilShopGUI.php.

References $_SESSION.

Referenced by __construct(), clearFilter(), resetFilter(), and setFilter().

{
$_SESSION['shop_content']['shop_topic_id'] = $this->topic_id = $a_topic_id;
}

+ Here is the caller graph for this function:

ilShopGUI::setType (   $a_type)

Definition at line 474 of file class.ilShopGUI.php.

References $_SESSION.

Referenced by __construct(), clearFilter(), resetFilter(), and setFilter().

{
$_SESSION['shop_content']['type'] = $this->type = $a_type;
}

+ Here is the caller graph for this function:

ilShopGUI::showShopContent (   $oResult)

Definition at line 312 of file class.ilShopGUI.php.

References ilShopTopics\_getInstance(), ilShopTopics\DEFAULT_SORTING_DIRECTION, ilUtil\formSelect(), getPageHTML(), getSortDirection(), getSortField(), getSortingDirectionTopics(), getSortingTypeTopics(), getString(), getTopicId(), getType(), ilUtil\prepareFormOutput(), ilShopTopics\TOPICS_SORT_BY_CREATEDATE, ilShopTopics\TOPICS_SORT_BY_TITLE, and ilShopTopics\TOPICS_SORT_MANUALLY.

Referenced by performSearch().

{
global $ilUser, $rbacreview;
if($rbacreview->isAssigned($ilUser->getId(), SYSTEM_ROLE_ID))
{
$this->tpl->addBlockfile('BUTTONS', 'buttons', 'tpl.buttons.html');
$this->tpl->setCurrentBlock('btn_cell');
$this->tpl->setVariable('BTN_LINK', $this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'edit'));
$this->tpl->setVariable('BTN_TXT', $this->lng->txt('edit_page'));
$this->tpl->parseCurrentBlock();
}
$this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.shop_content.html', 'Services/Payment');
$this->tpl->setVariable('PAGE_CONTENT', $this->getPageHTML());
// filter form
$this->tpl->setVariable('FILTER_TEXT', $this->lng->txt('filter'));
$this->tpl->setVariable('TEXT_FILTER_BY', $this->lng->txt('filter_by'));
$filter_fields = array(
'title' => $this->lng->txt('title'),
'author' => $this->lng->txt('author'),
'metadata' => $this->lng->txt('meta_data')
);
foreach($filter_fields as $key => $value)
{
$this->tpl->setCurrentBlock('filterrow');
$this->tpl->setVariable('VALUE_FILTER_TYPE', $key);
$this->tpl->setVariable('NAME_FILTER_TYPE', $value);
if (strcmp(trim($this->getType()), $key) == 0)
{
$this->tpl->setVariable('VALUE_FILTER_SELECTED', ' selected="selected"');
}
$this->tpl->parseCurrentBlock();
}
$this->tpl->setVariable('VALUE_FILTER_TEXT', ilUtil::prepareFormOutput($this->getString(), true));
$this->tpl->setVariable('FILTER_FORM_ACTION', $this->ctrl->getFormAction($this, 'setFilter'));
$this->tpl->setVariable('CMD_SUBMIT_FILTER', 'setFilter');
$this->tpl->setVariable('CMD_RESET_FILTER', 'resetFilter');
$this->tpl->setVariable('VALUE_SUBMIT_FILTER', $this->lng->txt('set_filter'));
$this->tpl->setVariable('VALUE_RESET_FILTER', $this->lng->txt('reset_filter'));
ilShopTopics::_getInstance()->setIdFilter(false);
$options = array();
if(count(ilShopTopics::_getInstance()->getTopics()))
{
$options[''] = $this->lng->txt('please_select');
foreach(ilShopTopics::_getInstance()->getTopics() as $oTopic)
{
$options[$oTopic->getId()] = $oTopic->getTitle();
}
$this->tpl->setCurrentBlock('filter_topics');
$this->tpl->setVariable('TXT_FILTER_TOPICS', $this->lng->txt('topic'));
$this->tpl->setVariable('SELECTBOX_FILTER_TOPICS', ilUtil::formSelect($this->getTopicId(), 'filter_topic_id', $options, false, true));
$this->tpl->parseCurrentBlock();
}
else
{
$options[''] = $this->lng->txt('no_topics_yet');
}
if(count($oResult->getResults()))
{
// sorting form
$order_fields = array(
'title' => $this->lng->txt('title'),
'author' => $this->lng->txt('author'),
'price' => $this->lng->txt('price_a')
);
foreach($order_fields as $key => $value)
{
$this->tpl->setCurrentBlock('order_field');
$this->tpl->setVariable('ORDER_FIELD_VALUE', $key);
$this->tpl->setVariable('ORDER_FIELD_TEXT', $value);
if (strcmp(trim($this->getSortField()), $key) == 0)
{
$this->tpl->setVariable('ORDER_FIELD_SELECTED', ' selected="selected"');
}
$this->tpl->parseCurrentBlock();
}
$this->tpl->setVariable('SORTING_FORM_ACTION', $this->ctrl->getFormAction($this, 'setSorting'));
$this->tpl->setVariable('CMD_SORT', 'setSorting');
$this->tpl->setVariable('SORT_TEXT', $this->lng->txt('sort'));
$this->tpl->setVariable('SORT_BY_TEXT', $this->lng->txt('sort_by'));
$this->tpl->setVariable('ASCENDING_TEXT', $this->lng->txt('sort_asc'));
$this->tpl->setVariable('DESCENDING_TEXT', $this->lng->txt('sort_desc'));
$this->tpl->setVariable('ORDER_DIRECTION_'.strtoupper(trim($this->getSortDirection())).'_SELECTED', " selected=\"selected\"");
if((bool)$this->oGeneralSettings->get('topics_allow_custom_sorting'))
{
$this->tpl->setCurrentBlock('topics_sort_block');
$this->tpl->setVariable('SORT_TOPICS_BY_TEXT', $this->lng->txt('sort_topics_by'));
$this->tpl->setVariable('SORTING_TYPE_BY_TITLE', ilShopTopics::TOPICS_SORT_BY_TITLE);
$this->tpl->setVariable('SORTING_TYPE_BY_TITLE_TEXT', $this->lng->txt('sort_topics_by_title'));
{
$this->tpl->setVariable('SORTING_TYPE_BY_TITLE_SELECTED', ' selected="selected"');
}
$this->tpl->setVariable('SORTING_TYPE_BY_DATE', ilShopTopics::TOPICS_SORT_BY_CREATEDATE);
$this->tpl->setVariable('SORTING_TYPE_BY_DATE_TEXT', $this->lng->txt('sort_topics_by_date'));
{
$this->tpl->setVariable('SORTING_TYPE_BY_DATE_SELECTED', ' selected="selected"');
}
if(ANONYMOUS_USER_ID != $ilUser->getId())
{
$this->tpl->setCurrentBlock('sort_manually');
$this->tpl->setVariable('SORTING_TYPE_MANUALLY', ilShopTopics::TOPICS_SORT_MANUALLY);
$this->tpl->setVariable('SORTING_TYPE_MANUALLY_TEXT', $this->lng->txt('sort_topics_manually'));
{
$this->tpl->setVariable('SORTING_TYPE_MANUALLY_SELECTED', ' selected="selected"');
}
$this->tpl->parseCurrentBlock();
}
$this->tpl->setVariable('SORTING_DIRECTION_ASCENDING_TEXT', $this->lng->txt('sort_asc'));
$this->tpl->setVariable('SORTING_DIRECTION_DESCENDING_TEXT', $this->lng->txt('sort_desc'));
if(in_array(strtoupper($this->getSortingDirectionTopics()), array('ASC', 'DESC')))
{
$this->tpl->setVariable('SORTING_DIRECTION_'.strtoupper($this->getSortingDirectionTopics()).'_SELECTED',
' selected="selected"');
}
else
{
$this->tpl->setVariable('SORTING_DIRECTION_'.strtoupper(ilShopTopics::DEFAULT_SORTING_DIRECTION).'_SELECTED', ' selected="selected"');
}
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock('sorting');
$this->tpl->parseCurrentBlock();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilShopGUI::$sort_direction = ''
private

Definition at line 42 of file class.ilShopGUI.php.

Referenced by getSortDirection().

ilShopGUI::$sort_direction_topics = ''
private

Definition at line 40 of file class.ilShopGUI.php.

Referenced by getSortingDirectionTopics().

ilShopGUI::$sort_field = ''
private

Definition at line 41 of file class.ilShopGUI.php.

Referenced by getSortField().

ilShopGUI::$sort_type_topics = ''
private

Definition at line 39 of file class.ilShopGUI.php.

Referenced by getSortingTypeTopics().

ilShopGUI::$string = ''
private

Definition at line 43 of file class.ilShopGUI.php.

Referenced by getString().

ilShopGUI::$topic_id = 0
private

Definition at line 45 of file class.ilShopGUI.php.

Referenced by getTopicId().

ilShopGUI::$type = ''
private

Definition at line 44 of file class.ilShopGUI.php.

Referenced by getType().

const ilShopGUI::SHOP_PAGE_EDITOR_PAGE_ID = 99999999

Definition at line 37 of file class.ilShopGUI.php.


The documentation for this class was generated from the following file: