iranianpep/code-jetter

View on GitHub
core/ICrud.php

Summary

Maintainability
A
1 hr
Test Coverage
<?php
/**
 * Created by PhpStorm.
 * User: ehsanabbasi
 * Date: 25/04/15
 * Time: 5:29 PM.
 */

namespace CodeJetter\core;

/**
 * Interface ICrud.
 */
interface ICrud
{
    public function add(array $inputs, array $fieldsValues, $extraDefinedInputs = []);

    public function getAll(array $criteria = [], array $fromColumns = [], $order = null, $start = 0, $limit = 0);

    public function update(
        array $criteria,
        array $inputs,
        array $fieldsValues,
        $limit = 0,
        $extraDefinedInputs = [],
        $excludeArchived = true,
        $batchAction = false
    );

    public function delete(array $criteria, $start = 0, $limit = 0);
}