/** * 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); } }
/** * 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(); }