- Timestamp:
- 12/07/11 18:53:05 (6 months ago)
- Location:
- trunk/inc/classes
- Files:
-
- 1 added
- 7 edited
-
BxDolDb.php (modified) (1 diff)
-
BxDolModuleDb.php (added)
-
BxDolPageView.php (modified) (3 diffs)
-
BxDolPrivacy.php (modified) (3 diffs)
-
BxDolTwigModule.php (modified) (2 diffs)
-
BxDolTwigModuleDb.php (modified) (2 diffs)
-
BxDolTwigSearchResult.php (modified) (1 diff)
-
BxDolTwigTemplate.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/classes/BxDolDb.php
r15519 r15731 685 685 return $sQuery; 686 686 } 687 688 function log ($s) { 689 return file_put_contents(BX_DIRECTORY_PATH_ROOT . 'tmp/db.err.log', date('Y-m-d H:i:s') . "\t" . $s . "\n", FILE_APPEND); 690 } 687 691 } 688 692 -
trunk/inc/classes/BxDolPageView.php
r15395 r15731 455 455 $sClass .= isset($aLink['icon']) ? ' with_icon' : ''; 456 456 457 if (!empty($aLink['onclick']))457 if (!empty($aLink['onclick'])) 458 458 $sOnclick = 'onclick="' . $aLink['onclick'] . '"'; 459 else if ($aLink['dynamic'])459 else if (!empty($aLink['dynamic'])) 460 460 $sOnclick = 'onclick="return !loadDynamicBlock(' . $iBlockID . ', this.href);"'; 461 else if ($aLink['dynamicPopup'])461 else if (!empty($aLink['dynamicPopup'])) 462 462 $sOnclick = 'onclick="loadDynamicPopupBlock(' . $iBlockID . ', this.href); return false;"'; 463 463 else … … 466 466 $aItems[] = array( 467 467 'bx_if:item_act' => array( 468 'condition' => (bool)$aLink['active'],468 'condition' => isset($aLink['active']) ? (bool)$aLink['active'] : false, 469 469 'content' => array( 470 470 'bx_if:icon_act' => array( … … 479 479 ), 480 480 'bx_if:item_pas' => array( 481 'condition' => !(bool)$aLink['active'],481 'condition' => isset($aLink['active']) ? !(bool)$aLink['active'] : true, 482 482 'content' => array( 483 483 'bx_if:icon_pas' => array( -
trunk/inc/classes/BxDolPrivacy.php
r15211 r15731 23 23 ***************************************************************************/ 24 24 25 bx_import('BxDolMistake');26 25 bx_import('BxDolPrivacyQuery'); 27 26 … … 74 73 * 75 74 */ 76 class BxDolPrivacy extends BxDol Mistake{75 class BxDolPrivacy extends BxDol { 77 76 var $_oDb; 78 77 … … 81 80 */ 82 81 function BxDolPrivacy($sTable = '', $sFieldId = '', $sFieldOwnerId = '') { 83 parent:: BxDolMistake();82 parent::__construct(); 84 83 85 84 $this->_oDb = new BxDolPrivacyQuery($sTable, $sFieldId, $sFieldOwnerId); -
trunk/inc/classes/BxDolTwigModule.php
r15392 r15731 36 36 function BxDolTwigModule(&$aModule) { 37 37 parent::BxDolModule($aModule); 38 $this->_iProfileId = $GLOBALS['logged']['member'] || $GLOBALS['logged']['admin']? $_COOKIE['memberID'] : 0;38 $this->_iProfileId = !empty($GLOBALS['logged']['member']) || !empty($GLOBALS['logged']['admin']) ? $_COOKIE['memberID'] : 0; 39 39 } 40 40 … … 916 916 $this->_oDb->removeFanFromAllEntries ($iProfileId); 917 917 $this->_oDb->removeAdminFromAllEntries ($iProfileId); 918 } 919 920 function serviceResponseAccountDelete ($oAlert) { 921 922 if (!($iAccountId = (int)$oAlert->iObject)) 923 return false; 924 925 // TODO: get all account's profiles and delete all profiles' data 926 927 return true; 918 928 } 919 929 -
trunk/inc/classes/BxDolTwigModuleDb.php
r15392 r15731 23 23 ***************************************************************************/ 24 24 25 bx_import('BxDolModule Query');25 bx_import('BxDolModuleDb'); 26 26 27 27 /** 28 28 * Base database class for modules like events/groups/store 29 29 */ 30 class BxDolTwigModuleDb extends BxDolModule Query{30 class BxDolTwigModuleDb extends BxDolModuleDb { 31 31 32 32 var $_sTableMain = 'main'; … … 48 48 var $_sFieldAllowViewTo = 'allow_view_to'; 49 49 50 /* 50 /** 51 51 * Constructor. 52 52 */ 53 53 function BxDolTwigModuleDb(&$oConfig) { 54 parent:: BxDolModuleQuery($oConfig);54 parent::__construct($oConfig); 55 55 } 56 56 -
trunk/inc/classes/BxDolTwigSearchResult.php
r15211 r15731 104 104 } 105 105 106 ?> -
trunk/inc/classes/BxDolTwigTemplate.php
r15386 r15731 38 38 39 39 function parseHtmlByName ($sName, &$aVars) { 40 return parent::parseHtmlByName ( $sName.'.html', $aVars);40 return parent::parseHtmlByName (strpos($sName, '.html', strlen($sName) - 5) ? $sName : $sName.'.html', $aVars); 41 41 } 42 42 … … 53 53 $sCode = DesignBoxContent($sTitle, $sCode, $isWrap ? BX_DB_PADDING_DEF : BX_DB_DEF); 54 54 55 $oTemplate = $this;56 $oTemplate->setPageNameIndex ( $isDesignBox || !$this->_iPageIndex ? BX_PAGE_DEFAULT : $this->_iPageIndex);55 $oTemplate = BxDolTemplate::getInstance();//$this; 56 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);//$isDesignBox || !$this->_iPageIndex ? BX_PAGE_DEFAULT : $this->_iPageIndex); 57 57 $oTemplate->setPageHeader ($sTitle); 58 58 $oTemplate->setPageContent ('page_main_code', $sCode); 59 59 60 60 $oTemplate->addDynamicLocation($this->_oConfig->getHomePath(), $this->_oConfig->getHomeUrl()); 61 PageCode($oTemplate);61 $oTemplate->getPageCode(); 62 62 } 63 63
Note: See TracChangeset
for help on using the changeset viewer.