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