_db->query('TRUNCATE ' . $this->_db->quoteIdentifier($this->_getTableName())); return $this; } public function getObjectInfo() { $data = parent::getObjectInfo(); $data['itemTitle'] = $data['source']; return $data; } public function isUnique($field, $value) { $field = addslashes($field); $sql = 'SELECT 1 FROM `' . $this->_getTableName() . '` WHERE `' . $field . '` = ' . $this->_db->quote($value); return (bool) $this->_db->fetchOne($sql); } }