find() is using preg_match instead of ==
[AOOS.git] / lib / AOOSInterfaces.php
blob793122dde1d56119d0f46972f9ac6e8ba838303b
1 <?php
3 /**
4 * Interfaces
5 * @author Sebastian Skejø
6 */
8 /**
9 */
10 interface AOOSStorageInterface
12 /**
13 * Sets table to manipulate data in
15 public function setTable($table);
17 /**
18 * Inserts values into database
20 public function insert($values);
22 /**
23 * Removes values from database
25 public function remove($where);
27 /**
28 * Updates values in database
30 public function update($values, $where, $limit = 0);
32 /**
33 * Returns an array with all fields $fields that matches $where
35 public function select($fields, $where, $order, $limit);
37 /**
38 * Returns an integer representing the number of rows
40 public function numRows($where = null);
42 /**
43 * Creates a table
45 public function create($fields, $props);