BxDolVoting::__construct PHP Méthode

__construct() public méthode

Constructor
public __construct ( $sSystem, $iId, $iInit = 1 )
    function __construct($sSystem, $iId, $iInit = 1)
    {
        $this->_aSystems =& $this->getSystems();
        $this->_sSystem = $sSystem;
        if (isset($this->_aSystems[$sSystem])) {
            $this->_aSystem = $this->_aSystems[$sSystem];
        } else {
            return;
        }
        $this->_oQuery = new BxDolVotingQuery($this->_aSystem);
        if ($iInit) {
            $this->init($iId);
        }
    }

Usage Example

 function __construct($sSystem, $iId, $iInit = 1)
 {
     parent::__construct($sSystem, $iId, $iInit);
 }