Base\Base::deleteItem PHP Method

deleteItem() public method

public deleteItem ( string $table, integer $id ) : integer
$table string
$id integer
return integer
    function deleteItem($table, $id)
    {
        $impactedRecordCount = $this->find($table)->whereEqual('id', $id)->delete();
        return $impactedRecordCount;
    }