BanModel::delete PHP Method

delete() public method

Remove a ban.
public delete ( array | integer $where = [], array | true $options = [] ) : boolean
$where array | integer The where clause to delete or an integer value.
$options array | true An array of options to control the delete.
return boolean Returns **true** on success or **false** on failure.
    public function delete($where = [], $options = [])
    {
        if (isset($where['BanID'])) {
            $OldBan = $this->getID($where['BanID'], DATASET_TYPE_ARRAY);
        }
        $result = parent::delete($where, $options);
        if (isset($OldBan)) {
            $this->ApplyBan(null, $OldBan);
        }
        return $result;
    }