function __construct($sModuleClass = '') { /* main settings for shared modules ownFields - fields which will be got from main table ($this->aCurrent['table']) searchFields - fields which using for full text key search join - array of join tables join array ( 'type' - type of join 'table' - join table 'mainField' - field from main table for 'on' condition 'onField' - field from joining table for 'on' condition 'joinFields' - array of fields from joining table ) */ $this->aCurrent = array('ownFields' => array('ID', 'Title', 'Uri', 'Date', 'Time', 'Rate', 'RateCount'), 'searchFields' => array('Title', 'Tags', 'Description', 'Categories'), 'join' => array('profile' => array('type' => 'left', 'table' => 'Profiles', 'mainField' => 'Owner', 'onField' => 'ID', 'joinFields' => array('NickName')), 'albumsObjects' => array('type' => 'left', 'table' => 'sys_albums_objects', 'mainField' => 'ID', 'onField' => 'id_object', 'joinFields' => ''), 'albums' => array('type' => 'left', 'table' => 'sys_albums', 'mainField' => 'id_album', 'onField' => 'ID', 'joinFields' => array('AllowAlbumView'), 'mainTable' => 'sys_albums_objects')), 'restriction' => array('activeStatus' => array('value' => 'approved', 'field' => 'Status', 'operator' => '=', 'paramName' => 'status'), 'owner' => array('value' => '', 'field' => 'Owner', 'operator' => '=', 'paramName' => 'userID'), 'ownerStatus' => array('value' => array('Rejected', 'Suspended'), 'operator' => 'not in', 'paramName' => 'ownerStatus', 'table' => 'Profiles', 'field' => 'Status'), 'tag' => array('value' => '', 'field' => 'Tags', 'operator' => 'against', 'paramName' => 'tag'), 'category' => array('value' => '', 'field' => 'Categories', 'operator' => 'against', 'paramName' => 'categoryUri'), 'id' => array('value' => '', 'field' => 'ID', 'operator' => 'in'), 'allow_view' => array('value' => '', 'field' => 'AllowAlbumView', 'operator' => 'in', 'table' => 'sys_albums'), 'not_allow_view' => array('value' => '', 'field' => 'AllowAlbumView', 'operator' => 'not in', 'table' => 'sys_albums'), 'album_status' => array('value' => 'active', 'field' => 'Status', 'operator' => '=', 'table' => 'sys_albums'), 'albumType' => array('value' => '', 'field' => 'Type', 'operator' => '=', 'paramName' => 'albumType', 'table' => 'sys_albums')), 'paginate' => array('perPage' => 10, 'page' => 1, 'totalNum' => 10, 'totalPages' => 1), 'sorting' => 'last', 'view' => 'full', 'rss' => array('title' => '', 'link' => '', 'image' => '', 'profile' => 0, 'fields' => array('Link' => '', 'Title' => 'title', 'DateTimeUTS' => 'date', 'Desc' => 'desc', 'Photo' => ''))); // favorite config, basic for all media modules $this->aAddPartsConfig['favorite'] = array('type' => 'inner', 'table' => '', 'mainField' => 'ID', 'onField' => 'ID', 'userField' => 'Profile', 'joinFields' => ''); $this->aPseud = $this->_getPseud(); parent::__construct(); $this->sModuleClass = $sModuleClass; $this->oModule = BxDolModule::getInstance($this->sModuleClass); $this->oTemplate = $GLOBALS['oSysTemplate']; $sClassName = $this->oModule->_oConfig->getClassPrefix() . 'Privacy'; bx_import('Privacy', $this->oModule->_aModule); $this->oPrivacy = new $sClassName('sys_albums', 'ID', 'Owner'); $this->sTemplUnit = 'browse_unit'; $this->bDynamic = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'; }
function __construct() { $this->aPseud = $this->_getPseud(); parent::__construct(); bx_import('BxTemplVotingView'); $this->aConstants['linksTempl'] = $this->isPermalinkEnabled() ? $this->aPermalinks['enabled'] : $this->aPermalinks['disabled']; }
function __construct() { parent::__construct(); }
function __construct($oFunctions = false) { parent::__construct($oFunctions); }