$table
$table : string
Class Repo_categories_m - Model
Model for repo_categories table.
read_table(array $items, array $or_like = array(), array $order = array(), integer $Pagesize, integer $Offset, true|false $count = FALSE, null|array $filter = NULL)
Return data for table of the crud.
Recive some params to make database query & return data
| array | $items | Contain columns names to get from database |
| array | $or_like | - |
| array | $order | Specifies data order, use a simple array using key for column & value for direction |
| integer | $Pagesize | Specifies the maximum number of rows to return |
| integer | $Offset | Specifies the offset of the first row to return |
| true|false | $count | |
| null|array | $filter | - |
_delete(string $id, string $back = '', string $target = '', string $ok = NULL, true|false $wrap = TRUE) : mixed
Help delete method to return layout view for delete section of crud or to process submit for delete section.
| string | $id | Primary key value |
| string | $back | Segment url passed to base_url helper used to back when click on cancel button on delete section |
| string | $target | Segment url passed to base_url helper used to go when click on submit button on delete section |
| string | $ok | - |
| true|false | $wrap | - |
_before_save(integer $id, array $data)
This callback runs before save of the crud.
The callback takes as a 1st parameter the primary key value and as 2nd the post array. With this opportunity you can add or unset some post variables.
| integer | $id | Primary key |
| array | $data | Array |
_before_update(integer $id, array $data)
This callback runs before the update of the crud.
The callback takes as a 1st parameter the primary key value and as 2nd the post array. With this opportunity you can add or unset some post variables.
| integer | $id | Primary key |
| array | $data | Array |
_get_filtered_tree(array $cats_ids, array $docs_ids, integer|null $parent_id = NULL) : array
Make a multidimensional array with information about docs.
| array | $cats_ids | Array of categories. |
| array | $docs_ids | Array of documents |
| integer|null | $parent_id | Parent ID |