dbObject::delete PHP Méthode

delete() public méthode

Delete method. Works only if object primaryKey is defined
public delete ( ) : boolean
Résultat boolean Indicates success. 0 or 1.
    public function delete()
    {
        if (empty($this->data[$this->primaryKey])) {
            return false;
        }
        $this->db->where($this->primaryKey, $this->data[$this->primaryKey]);
        return $this->db->delete($this->dbTable);
    }