Cheetah
ChWsbConfig.php
Go to the documentation of this file.
1 <?php
2 
8 require_once(CH_DIRECTORY_PATH_INC . 'utils.inc.php');
9 
10 ch_import('ChWsbPermalinks');
11 
38 {
39  var $_iId;
40 
41  var $_sVendor;
42 
44 
46 
48 
49  var $_sUri;
50 
52 
54 
56 
58 
63  {
64  $this->_iId = empty($aModule['id']) ? 0 : (int)$aModule['id'];
65  $this->_sVendor = $aModule['vendor'];
66  $this->_sClassPrefix = $aModule['class_prefix'];
67  $this->_sDbPrefix = $aModule['db_prefix'];
68 
69  $this->_sDirectory = $aModule['path'];
70  $this->_sHomePath = CH_DIRECTORY_PATH_MODULES . $this->_sDirectory;
71  $this->_sClassPath = $this->_sHomePath . 'classes/';
72 
73  $this->_sUri = $aModule['uri'];
74  $this->_sHomeUrl = CH_WSB_URL_MODULES . $this->_sDirectory;
75 
76  $oPermalinks = new ChWsbPermalinks();
77  $this->_sBaseUri = $oPermalinks->permalink('modules/?r=' . $this->_sUri . '/');
78  }
79  function getId()
80  {
81  return $this->_iId;
82  }
83  function getClassPrefix()
84  {
85  return $this->_sClassPrefix;
86  }
87  function getDbPrefix()
88  {
89  return $this->_sDbPrefix;
90  }
91  function getHomePath()
92  {
93  return $this->_sHomePath;
94  }
95  function getClassPath()
96  {
97  return $this->_sClassPath;
98  }
104  function getUri()
105  {
106  return $this->_sUri;
107  }
114  function getBaseUri()
115  {
116  return $this->_sBaseUri;
117 
118  }
124  function getHomeUrl()
125  {
126  return $this->_sHomeUrl;
127  }
128 }
ChWsbConfig\getClassPath
getClassPath()
Definition: ChWsbConfig.php:95
ChWsbConfig\$_sVendor
$_sVendor
Definition: ChWsbConfig.php:41
$aModule
$aModule
Definition: classifieds.php:21
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ChWsbConfig\__construct
__construct($aModule)
Definition: ChWsbConfig.php:62
php
ChWsbConfig\$_sDbPrefix
$_sDbPrefix
Definition: ChWsbConfig.php:45
ChWsbConfig\getDbPrefix
getDbPrefix()
Definition: ChWsbConfig.php:87
ChWsbConfig\getHomePath
getHomePath()
Definition: ChWsbConfig.php:91
ChWsbConfig\$_sClassPath
$_sClassPath
Definition: ChWsbConfig.php:53
ChWsbConfig\$_sDirectory
$_sDirectory
Definition: ChWsbConfig.php:47
ChWsbConfig\getHomeUrl
getHomeUrl()
Definition: ChWsbConfig.php:124
ChWsbConfig
Definition: ChWsbConfig.php:38
ChWsbConfig\getBaseUri
getBaseUri()
Definition: ChWsbConfig.php:114
ChWsbConfig\$_sHomeUrl
$_sHomeUrl
Definition: ChWsbConfig.php:55
ChWsbConfig\$_iId
$_iId
Definition: ChWsbConfig.php:39
ChWsbConfig\$_sClassPrefix
$_sClassPrefix
Definition: ChWsbConfig.php:43
ChWsbConfig\$_sUri
$_sUri
Definition: ChWsbConfig.php:49
ChWsbConfig\$_sHomePath
$_sHomePath
Definition: ChWsbConfig.php:51
ChWsbConfig\getUri
getUri()
Definition: ChWsbConfig.php:104
ChWsbConfig\$_sBaseUri
$_sBaseUri
Definition: ChWsbConfig.php:57
ChWsbConfig\getClassPrefix
getClassPrefix()
Definition: ChWsbConfig.php:83
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7
ChWsbConfig\getId
getId()
Definition: ChWsbConfig.php:79