public function __construct($config = array()) { parent::__construct($config); if (isset($config[self::KEY])) { $this->_id = $config[self::KEY]; } }
public function __construct($source = null) { parent::__construct(); if ($source) { $this->setSource($source); } }
public function __construct($id = 0) { // Call the parent in order to initialize all DB related funcions parent::__construct(); // Fetch the settings from the database if id was provided $this->_id = $id; if ($id > 0) { $this->updateSettingsFromDatabase(); } }