BxDolFilesModule::__construct PHP Method

__construct() public method

Constructor
public __construct ( &$aModule )
    function __construct(&$aModule)
    {
        parent::__construct($aModule);
        $this->_iProfileId = $this->_oDb->iViewer;
        $this->_oTemplate->init($this->_oDb);
        $this->aPageTmpl = array('name_index' => 1, 'header' => $GLOBALS['site']['title'], 'header_text' => '');
        $sClassName = $this->_oConfig->getClassPrefix() . 'Privacy';
        bx_import('Privacy', $aModule);
        $this->oPrivacy = new $sClassName();
        $this->oAlbumPrivacy = new $sClassName('sys_albums');
        $this->oAlbums = new BxDolAlbums($this->_oConfig->getMainPrefix(), $this->_iProfileId);
        $this->aSectionsAdmin = array('approved' => array('exclude_btns' => array('activate')), 'disapproved' => array('exclude_btns' => array('deactivate', 'featured', 'unfeatured')), 'pending' => array('exclude_btns' => array('activate', 'deactivate', 'featured', 'unfeatured')));
    }

Usage Example

Beispiel #1
0
 /**
  * Constructor
  */
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->_oConfig->init($this->_oDb);
     $this->_aMemActions[] = 'download';
     $this->aSectionsAdmin['pending'] = array('exclude_btns' => array('featured', 'unfeatured'));
 }
All Usage Examples Of BxDolFilesModule::__construct