Example #1
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     if (isset($config[self::KEY])) {
         $this->_id = $config[self::KEY];
     }
 }
Example #2
0
 public function __construct($source = null)
 {
     parent::__construct();
     if ($source) {
         $this->setSource($source);
     }
 }
Example #3
0
 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();
     }
 }