ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilShopLinkBuilder Class Reference

Class ilShopLinkBuilder. More...

+ Collaboration diagram for ilShopLinkBuilder:

Public Member Functions

 __construct ()
 buildLink ($key, $additional_param=null)

Static Public Attributes

static $linkArray

Detailed Description

Class ilShopLinkBuilder.

Author
Nadia Ahmad nahma.nosp@m.d@da.nosp@m.tabay.nosp@m..de
Version
$Id:$

Definition at line 13 of file class.ilShopLinkBuilder.php.

Constructor & Destructor Documentation

ilShopLinkBuilder::__construct ( )
Parameters
ilSetting$settings

Definition at line 31 of file class.ilShopLinkBuilder.php.

References $ilSetting.

{
global $ilSetting;
$this->settings = $ilSetting;
}

Member Function Documentation

ilShopLinkBuilder::buildLink (   $key,
  $additional_param = null 
)
Parameters
string$keysee $linkArray-keys
null$additional_parami.e "_anAdditionalParameter" is processed by goto.php. Value must start with an underline!!
Returns
string

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

{
if($additional_param == null)
{
$link = ILIAS_HTTP_PATH.'/goto_'.CLIENT_ID.'_'
.strtolower(self::$linkArray[strtolower($key)]['cmdClass']).'_1.html';
}
else
{
$link = ILIAS_HTTP_PATH.'/goto_'.CLIENT_ID.'_'
.strtolower(self::$linkArray[strtolower($key)]['cmdClass']).'_1'.$additional_param.'.html';
}
return $link;
}

Field Documentation

ilShopLinkBuilder::$linkArray
static
Initial value:
array(
'ilshopgui' => array('baseClass' => 'ilShopController', 'cmdClass' => 'ilShopGUI', 'public' => 'true'),
'ilshopadvancedsearchgui' => array('baseClass' => 'ilShopController', 'cmdClass' => 'ilShopAdvancedSearchGUI','public' => 'true'),
'ilshopinfogui' => array('baseClass' => 'ilShopController', 'cmdClass' => 'ilShopInfoGUI','public' => 'true'),
'ilshopnewsgui' => array('baseClass' => 'ilShopController', 'cmdClass' => 'ilShopNewsGUI','public' => 'true'),
'ilshopboughtobjectsgui' => array('baseClass' => 'ilShopController', 'cmdClass' => 'ilShopBoughtObjectsGUI','public' => 'false'),
'ilshopshoppingcartgui' => array('baseClass' => 'ilShopController', 'cmdClass' => 'ilShopShoppingCartGUI','public' => 'true'),
'iltermsconditionsgui' => array('baseClass' => 'ilShopController', 'cmdClass' => 'ilTermsConditionsGUI','public' => 'true')
)

Definition at line 16 of file class.ilShopLinkBuilder.php.


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