'', 'name' => '', 'version' => '', ); public function add($modulename, $version) { pdo_delete($this->tableName, array('name' => $modulename)); $ignore_module = array( 'name' => $modulename, 'version' => $version ); return pdo_insert($this->tableName, $ignore_module); } }