function BxSoundsRate() { $this->sType = 'bx_sounds'; $this->oMedia = new BxSoundsSearch(); $this->aPageInfo = array('header' => '_bx_sounds_rate_header', 'header_text' => '_bx_sounds_rate_header_text'); parent::BxDolRate($this->sType); }
function BxPhotosRate() { $this->sType = 'bx_photos'; $this->oMedia = new BxPhotosSearch(); $this->oMedia->aCurrent['restriction']['allow_view']['value'] = $this->oMedia->oModule->_checkVisible(); $this->aPageInfo = array('header' => '_bx_photos_rate_header', 'header_text' => '_bx_photos_rate_header_text'); parent::BxDolRate($this->sType); }
function BxVideosRate() { $this->sType = 'bx_videos'; $this->oMedia = new BxVideosSearch(); $this->oMedia->aCurrent['ownFields'][] = 'Video'; $this->oMedia->aCurrent['ownFields'][] = 'Source'; $this->aPageInfo = array('header' => '_bx_videos_rate_header', 'header_text' => '_bx_videos_rate_header_text'); parent::BxDolRate($this->sType); }
function __construct($sType, &$oMedia) { parent::__construct($sType); $this->oMedia = $oMedia; $this->oMedia->aCurrent['restriction']['allow_view']['value'] = $this->oMedia->oModule->_checkVisible(); $this->oConfig = $this->oMedia->oModule->_oConfig; $sMainPrefix = $this->oConfig->getMainPrefix(); $this->aPageInfo = array('header' => '_' . $sMainPrefix . '_rate_header', 'header_text' => '_' . $sMainPrefix . '_rate_header_text'); $this->oMedia->oTemplate->addCss('rate_object.css'); }