/** * Constructor */ function __construct($sSystem, $iId, $iInit = true) { parent::__construct($sSystem, $iId, $iInit); if (empty($this->_sSystem)) { return; } $this->_oQuery = new BxDolViewQuery($this); }
public function __construct($sSystem, $iId, $iInit = true, $oTemplate = false) { parent::__construct($sSystem, $iId, $iInit); if (empty($this->_sSystem)) { return; } $this->_oQuery = new BxDolVoteQuery($this); if ($oTemplate) { $this->_oTemplate = $oTemplate; } else { $this->_oTemplate = BxDolTemplate::getInstance(); } }