SCHLIX\interface_cmsApplication_List
Implements interface_cmsApplication_Basic
Inherits cmsApplication_List, interface_cmsApplication_CategorizedList
Inherits cmsApplication_List, interface_cmsApplication_CategorizedList
Public Methods
public int | getTotalItemCount(string $criteria='', bool $cache=false) Returns total item count with specified critiera (e.g. status > 0) $SystemDB
|
public | getItemTableName() Returns item table name
|
public | getItemFieldNames() Returns the field names
|
public string | getFieldID() Returns the title field name from $this->table_items (usually just title)
|
public | delete($str) Deletes items from table. The parameter $mixed_items_to_delete is a pipe-separated value of items, e.g. i4|i5|i1 $SystemDB
|
public array | getAllItems(type $fields=' *', type $extra_criteria='', int $start, int $end, string $sortby='', string $sortdirection='ASC', bool $from_cache=false) Queries $this->table_items
|
public | viewItemByID(int $id=1, bool $from_cache=false) Loads the item and display it with view.item.template.php
|
public array | getItemByID(int $id, bool $from_cache=false) Returns item by ID $SystemDB
|
public array | getItemsByVirtualFilename(string $input_filename, int $category_id=-1) Returns one or more item with the same virtual filename. Used in later classes. There's a parameter $category_id that's not supposed to be in this class but it's there for compatibility with inherited classes $SystemDB
|
public string | preventDuplicateValueInItemTable(string $fieldname, string $possible_duplicate, int $id) Returns a new name if there's an item with the same name in the specified $fieldname $SystemDB
|
public boolean | findDuplicateItems(array $data) Given an associative array $data, find possible duplicate from item's table
|
public bool|array String array | getValidationErrorListBeforeSaveItem($data) Validates save item. If there's an error, it will return an array with one or more error string, otherwise it will return a boolean true $CurrentUser
|
public array | saveItem(int $id, $alternative_datavalues=NULL) Saves item to database. If the item field has the following field: guid, version, date_created, date_modified, date_available, it will be filled automatically. Return value is an array containing ('status','id','errors') cmsDatabase $SystemDB basicVersioning $Versioning
|
public | genericSearch($fieldname, $keyword, $fields_tobe_selected=' *', $start, $end, $sortby='', $sortdirection='ASC') |