
Public Member Functions | |
| am ($record) | |
| Merge record result in one array. | |
| getDefaultDateFormat ($value=null) | |
| Get SQL date format. | |
| toolbar ($page=null, $dimPage=null, $size=0) | |
| Object search Toolbar. | |
| containLevel ($level="minimum") | |
| findObjects ($id=null, $userid=null, $status=null, $filter=array(), $order=null, $dir=true, $page=1, $dim=100000, $all=false, $excludeIds=array()) | |
| perform an objects search | |
Protected Member Functions | |
| checkDate ($key) | |
| Check date field in $this->data[ModelName][$key] -> set to null if empty or call getDefaultDateFormat. | |
| checkFloat ($key) | |
| Check float/double field in $this->data[ModelName][$key] -> set to null if empty. | |
| checkNumber ($key) | |
| Check integer/generic number in $this->data[ModelName][$key] -> set to null if empty. | |
| checkDuration ($key) | |
| getLimitClausole ($page=1, $dim=100000) | |
| SQL limit clausole. | |
Protected Attributes | |
| $modelBindings = array() | |
Definition at line 40 of file app_model.php.
| BEAppModel.am | ( | $ | record | ) |
Merge record result in one array.
| array | record record data |
Definition at line 50 of file app_model.php.
Referenced by BEAppObjectModel.__clone(), and findObjects().
| BEAppModel.getDefaultDateFormat | ( | $ | value = null |
) |
Get SQL date format.
| unknown_type | $value |
Definition at line 66 of file app_model.php.
Referenced by BEObject.beforeValidate(), and checkDate().
| BEAppModel.checkDate | ( | $ | key | ) | [protected] |
Check date field in $this->data[ModelName][$key] -> set to null if empty or call getDefaultDateFormat.
| string | $key |
Definition at line 86 of file app_model.php.
References getDefaultDateFormat().
Referenced by BEAppObjectModel.validateContent().
| BEAppModel.checkFloat | ( | $ | key | ) | [protected] |
Check float/double field in $this->data[ModelName][$key] -> set to null if empty.
| string | $key |
Definition at line 100 of file app_model.php.
| BEAppModel.checkNumber | ( | $ | key | ) | [protected] |
Check integer/generic number in $this->data[ModelName][$key] -> set to null if empty.
| string | $key |
Definition at line 112 of file app_model.php.
| BEAppModel.toolbar | ( | $ | page = null, |
|
| $ | dimPage = null, |
|||
| $ | size = 0 | |||
| ) |
Object search Toolbar.
| integer | $page | |
| integer | $dimPage | |
| mixed | $sqlCondition sql search condition | |
| boolean | $recursive TRUE, retrieve connected objects | |
| mixed | $sqlCondition sql search condition |
Definition at line 138 of file app_model.php.
Referenced by findObjects().
| BEAppModel.getLimitClausole | ( | $ | page = 1, |
|
| $ | dim = 100000 | |||
| ) | [protected] |
SQL limit clausole.
| int | $page, page num | |
| int | $dim, global size/count |
Definition at line 192 of file app_model.php.
Referenced by findObjects().
| BEAppModel.findObjects | ( | $ | id = null, |
|
| $ | userid = null, |
|||
| $ | status = null, |
|||
| $ | filter = array(), |
|||
| $ | order = null, |
|||
| $ | dir = true, |
|||
| $ | page = 1, |
|||
| $ | dim = 100000, |
|||
| $ | all = false, |
|||
| $ | excludeIds = array() | |||
| ) |
perform an objects search
| integer | $id root id, if it's set perform search on the tree | |
| string | $userid user: null (default) => no permission check. ' ' => guest/anonymous user, | |
| string | $status object status | |
| array | $filter example of filter: "object_type_id" => array(21,22,...), "ModelName.fieldname => "value", "query" => "text to search" .... |
| string | $order field to order result (id, status, modified..) | |
| boolean | $dir true (default), ascending, otherwiese descending. | |
| integer | $page Page number (for pagination) | |
| integer | $dim Page dim (for pagination) | |
| boolean | $all true: all tree levels (discendents), false: only first level (children) | |
| array | $excludeIds Array of id's to exclude |
Definition at line 230 of file app_model.php.
References am(), getLimitClausole(), and toolbar().
Referenced by Tree.getAll(), Tree.getChildren(), and Tree.getDescendants().
BEdita 3.0.1 betula