- Timestamp:
- 12/12/11 22:16:28 (6 months ago)
- Location:
- trunk/inc/classes
- Files:
-
- 6 edited
-
BxDolModuleConfig.php (modified) (1 diff)
-
BxDolModuleQuery.php (modified) (3 diffs)
-
BxDolTextData.php (modified) (3 diffs)
-
BxDolTextDb.php (modified) (1 diff)
-
BxDolTextModule.php (modified) (1 diff)
-
BxDolTextTemplate.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/classes/BxDolModuleConfig.php
r15336 r15751 81 81 return $this->_sDbPrefix; 82 82 } 83 function getDirectory() { 84 return $this->_sDirectory; 85 } 83 86 function getHomePath() { 84 87 return $this->_sHomePath; -
trunk/inc/classes/BxDolModuleQuery.php
r15722 r15751 35 35 } 36 36 function getModuleById($iId) { 37 $sSql = $this->prepare("SELECT `id`, ` title`, `vendor`, `version`, `product_url`, `update_url`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `date`, `enabled` FROM `sys_modules` WHERE `id`=? LIMIT 1", $iId);37 $sSql = $this->prepare("SELECT `id`, `name`, `title`, `vendor`, `version`, `product_url`, `update_url`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `date`, `enabled` FROM `sys_modules` WHERE `id`=? LIMIT 1", $iId); 38 38 return $this->fromMemory('sys_modules_' . $iId, 'getRow', $sSql); 39 39 } 40 function getModuleByName($sName) { 41 $sSql = $this->prepare("SELECT `id`, `name`, `title`, `vendor`, `version`, `product_url`, `update_url`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `date`, `enabled` FROM `sys_modules` WHERE `name`=? LIMIT 1", $sName); 42 return $this->fromMemory('sys_modules_' . $sName, 'getRow', $sSql); 43 } 40 44 function getModuleByUri($sUri) { 41 $sSql = $this->prepare("SELECT `id`, ` title`, `vendor`, `version`, `product_url`, `update_url`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `date`, `enabled` FROM `sys_modules` WHERE `uri`=? LIMIT 1", $sUri);45 $sSql = $this->prepare("SELECT `id`, `name`, `title`, `vendor`, `version`, `product_url`, `update_url`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `date`, `enabled` FROM `sys_modules` WHERE `uri`=? LIMIT 1", $sUri); 42 46 return $this->fromMemory('sys_modules_' . $sUri, 'getRow', $sSql); 43 47 } … … 52 56 function isModule($sUri) { 53 57 $sSql = $this->prepare("SELECT `id` FROM `sys_modules` WHERE `uri`=? LIMIT 1", $sUri); 58 return (int)$this->getOne($sSql) > 0; 59 } 60 function isModuleByName($sName) { 61 $sSql = $this->prepare("SELECT `id` FROM `sys_modules` WHERE `name`=? LIMIT 1", $sName); 54 62 return (int)$this->getOne($sSql) > 0; 55 63 } … … 81 89 } 82 90 83 $sSql = "SELECT `id`, `type`, `title`, `vendor`, `version`, `product_url`, `update_url`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `date`, `enabled` FROM `sys_modules` WHERE 1" . $sWhereClause . " ORDER BY `title`"; 91 $sSql = "SELECT 92 `id`, 93 IF(`vendor`='BoonEx', CONCAT('bx_', `uri`), `uri`) AS `name`, 94 `type`, 95 `title`, 96 `vendor`, 97 `version`, 98 `product_url`, 99 `update_url`, 100 `path`, 101 `uri`, 102 `class_prefix`, 103 `db_prefix`, 104 `lang_category`, 105 `date`, 106 `enabled` 107 FROM `sys_modules` 108 WHERE 1" . $sWhereClause . " 109 ORDER BY `title`"; 84 110 return $this->fromMemory('sys_modules' . $sPostfix, 'getAll', $sSql); 85 111 } -
trunk/inc/classes/BxDolTextData.php
r15211 r15751 34 34 bx_import('BxDolForm'); 35 35 bx_import('BxDolPrivacy'); 36 bx_import('BxDolCategories');36 //bx_import('BxDolCategories'); 37 37 bx_import('BxTemplFormView'); 38 bx_import('BxDolCategories');39 38 40 39 class BxDolTextData { … … 50 49 51 50 $this->_iOwnerId = BxDolTextData::getAuthorId(); 52 $oCategories = new BxDolCategories();53 $oCategories->getTagObjectConfig();51 //$oCategories = new BxDolCategories(); 52 //$oCategories->getTagObjectConfig(); 54 53 55 54 $this->_aForm = array( … … 156 155 ), 157 156 ), 158 'categories' => $oCategories->getGroupChooser ('bx_' . $this->_sSystem, $this->_iOwnerId, true),157 //'categories' => $oCategories->getGroupChooser ('bx_' . $this->_sSystem, $this->_iOwnerId, true), 159 158 'allow_comment_to' => array(), 160 159 'allow_vote_to' => array(), -
trunk/inc/classes/BxDolTextDb.php
r15287 r15751 24 24 ***************************************************************************/ 25 25 26 bx_import('BxDolModule Query');26 bx_import('BxDolModuleDb'); 27 27 28 class BxDolTextDb extends BxDolModule Query{28 class BxDolTextDb extends BxDolModuleDb { 29 29 var $_oConfig; 30 30 31 31 function BxDolTextDb(&$oConfig) { 32 parent:: BxDolModuleQuery();32 parent::__construct($oConfig); 33 33 34 34 $this->_oConfig = &$oConfig; -
trunk/inc/classes/BxDolTextModule.php
r15585 r15751 28 28 bx_import('BxDolModule'); 29 29 bx_import('BxDolPaginate'); 30 bx_import('BxDolCategories');30 //bx_import('BxDolCategories'); 31 31 bx_import('BxDolRssFactory'); 32 32 bx_import('BxDolSubscription'); 33 bx_import('BxDolAdminSettings'); 34 bx_import('BxTemplTagsModule'); 35 bx_import('BxTemplCategoriesModule'); 33 //bx_import('BxTemplTagsModule'); 34 //bx_import('BxTemplCategoriesModule'); 36 35 37 36 require_once(BX_DIRECTORY_PATH_PLUGINS . 'Services_JSON.php'); -
trunk/inc/classes/BxDolTextTemplate.php
r15260 r15751 43 43 $this->_oModule = $oModule; 44 44 45 /* 45 46 $this->oPaginate = new BxDolPaginate(array( 46 47 'page_url' => 'javascript:void(0);', … … 51 52 'on_change_page' => $this->_oConfig->getJsObject() . '.changePage({start}, {per_page})' 52 53 )); 54 */ 53 55 } 54 56 function displayAdminBlock($aParams) {
Note: See TracChangeset
for help on using the changeset viewer.