Exemplo n.º 1
0
 /**
  * Constructor function
  * From this you can load a configuration object upon constructor
  *
  * @param object $objConfig
  */
 public function __construct($objConfig = null)
 {
     parent::__construct();
     if (is_object($objConfig)) {
         $this->load($objConfig);
     }
 }
Exemplo n.º 2
0
 /**
  * Removes/Deletes a configuration value
  *
  * @param string $confKey
  * @return bool
  */
 public function delete($confKey)
 {
     parent::delete($confKey);
     $pdoSt = $this->_sql->prepare('DELETE FROM {PREFIX}' . $this->sqlTable . ' WHERE name = :name');
     foreach ((array) $confKey as $name) {
         $pdoSt->execute(array(':name' => $name));
     }
     return $pdoSt->rowCount();
 }