Summary
- File
- Package hierarchy Content\Item
- Class hierarchy \ItemsManager
__static()
None found |
__construct( $module_id = '')
$module_id |
None found |
count(string $condition = '', array $parameters = array())
string | $condition | (optional) : Restriction to apply to the list of items |
array | $parameters | (optional) : Parameters list to apply to the condition |
desc |
Count items number. |
count_items_having_keyword(string $condition = '', array $parameters = array())
string | $condition | (optional) : Restriction to apply to the list of items |
array | $parameters | (optional) : Parameters list to apply to the condition |
desc |
Count items number having a specific keyword. |
add(array<mixed,string> $item)
array<mixed,string> | $item | new Item |
desc |
Create a new item. |
update(array<mixed,string> $item)
array<mixed,string> | $item | Item to update |
desc |
Update an item. |
delete(integer $id)
integer | $id | Item identifier |
desc |
Delete an item. |
get_item(integer $id)
integer | $id | Item identifier |
desc |
Return the item with all its properties. |
update_views_number(array<mixed,string> $item)
array<mixed,string> | $item | Item to update |
desc |
Updates the views number of the item. |
get_items(string $condition = '', array $parameters = array(), integer $number_items_per_page, integer $display_from, string $sort_field = '', string $sort_mode = '', $keywords = false)
string | $condition | Restriction to apply to the item |
array | $parameters | Parameters of the condition |
integer | $number_items_per_page | Number of items to display |
integer | $display_from | First item to take into account |
string | $sort_field | Field on which apply the sorting |
string | $sort_mode | Sort mode (asc or desc) |
$keywords |
desc |
Return the list of items correspnding to the condition. |
clear_cache()
desc |
Clear caches files |
get_heritated_authorizations() : array<mixed,mixed>
Get the authorizations of the module.
The array of authorizations of the module.
None found |
get_module_id() : string
module identifier.
None found |
get_item_class() : array<mixed,mixed>
new Item
None found |
clear_module_cache()
desc |
Clear module caches files if needed |