HomeHelpTrac

Changeset 15731 for trunk/inc


Ignore:
Timestamp:
12/07/11 18:53:05 (6 months ago)
Author:
Alexander Trofimov
Message:

Groups - are installable now

Location:
trunk/inc/classes
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/classes/BxDolDb.php

    r15519 r15731  
    685685        return $sQuery; 
    686686    } 
     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    } 
    687691} 
    688692 
  • trunk/inc/classes/BxDolPageView.php

    r15395 r15731  
    455455            $sClass .= isset($aLink['icon']) ? ' with_icon' : ''; 
    456456 
    457             if(!empty($aLink['onclick'])) 
     457            if (!empty($aLink['onclick'])) 
    458458                $sOnclick = 'onclick="' . $aLink['onclick'] . '"'; 
    459             else if($aLink['dynamic']) 
     459            else if (!empty($aLink['dynamic'])) 
    460460                $sOnclick = 'onclick="return !loadDynamicBlock(' . $iBlockID . ', this.href);"'; 
    461             else if($aLink['dynamicPopup']) 
     461            else if (!empty($aLink['dynamicPopup'])) 
    462462                $sOnclick = 'onclick="loadDynamicPopupBlock(' . $iBlockID . ', this.href); return false;"'; 
    463463            else 
     
    466466            $aItems[] = array( 
    467467                'bx_if:item_act' => array( 
    468                     'condition' => (bool)$aLink['active'], 
     468                    'condition' => isset($aLink['active']) ? (bool)$aLink['active'] : false, 
    469469                    'content' => array( 
    470470                        'bx_if:icon_act' => array( 
     
    479479                ), 
    480480                'bx_if:item_pas' => array( 
    481                     'condition' => !(bool)$aLink['active'], 
     481                    'condition' => isset($aLink['active']) ? !(bool)$aLink['active'] : true, 
    482482                    'content' => array( 
    483483                        'bx_if:icon_pas' => array( 
  • trunk/inc/classes/BxDolPrivacy.php

    r15211 r15731  
    2323***************************************************************************/ 
    2424 
    25 bx_import('BxDolMistake'); 
    2625bx_import('BxDolPrivacyQuery'); 
    2726 
     
    7473 * 
    7574 */ 
    76 class BxDolPrivacy extends BxDolMistake { 
     75class BxDolPrivacy extends BxDol { 
    7776    var $_oDb; 
    7877 
     
    8180     */ 
    8281    function BxDolPrivacy($sTable = '', $sFieldId = '', $sFieldOwnerId = '') { 
    83         parent::BxDolMistake(); 
     82        parent::__construct(); 
    8483 
    8584        $this->_oDb = new BxDolPrivacyQuery($sTable, $sFieldId, $sFieldOwnerId); 
  • trunk/inc/classes/BxDolTwigModule.php

    r15392 r15731  
    3636    function BxDolTwigModule(&$aModule) { 
    3737        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; 
    3939    } 
    4040 
     
    916916        $this->_oDb->removeFanFromAllEntries ($iProfileId); 
    917917        $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; 
    918928    } 
    919929 
  • trunk/inc/classes/BxDolTwigModuleDb.php

    r15392 r15731  
    2323***************************************************************************/ 
    2424 
    25 bx_import('BxDolModuleQuery'); 
     25bx_import('BxDolModuleDb'); 
    2626 
    2727/** 
    2828 * Base database class for modules like events/groups/store 
    2929 */ 
    30 class BxDolTwigModuleDb extends BxDolModuleQuery { 
     30class BxDolTwigModuleDb extends BxDolModuleDb { 
    3131 
    3232    var $_sTableMain = 'main'; 
     
    4848    var $_sFieldAllowViewTo = 'allow_view_to'; 
    4949 
    50     /* 
     50    /** 
    5151     * Constructor. 
    5252     */ 
    5353    function BxDolTwigModuleDb(&$oConfig) { 
    54         parent::BxDolModuleQuery($oConfig); 
     54        parent::__construct($oConfig); 
    5555    } 
    5656 
  • trunk/inc/classes/BxDolTwigSearchResult.php

    r15211 r15731  
    104104} 
    105105 
    106 ?> 
  • trunk/inc/classes/BxDolTwigTemplate.php

    r15386 r15731  
    3838 
    3939    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); 
    4141    } 
    4242 
     
    5353            $sCode = DesignBoxContent($sTitle, $sCode, $isWrap ? BX_DB_PADDING_DEF : BX_DB_DEF); 
    5454 
    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); 
    5757        $oTemplate->setPageHeader ($sTitle); 
    5858        $oTemplate->setPageContent ('page_main_code', $sCode); 
    5959 
    6060        $oTemplate->addDynamicLocation($this->_oConfig->getHomePath(), $this->_oConfig->getHomeUrl()); 
    61         PageCode($oTemplate); 
     61        $oTemplate->getPageCode(); 
    6262    } 
    6363 
Note: See TracChangeset for help on using the changeset viewer.