◆ __construct()
Initialize the objects.
- Returns
- void
◆ addObject()
requires $object->(owner_guid, type, subtype, title, description)
- Returns
- boolean
◆ deleteObject()
deleteObject |
( |
|
$object = '' | ) |
|
Delete object;
- Parameters
-
integer | $object | Object guid |
- Returns
- boolean
◆ getObjectById()
getObjectById |
( |
array |
$options = array() | ) |
|
Get object by object guid;
Requires : $object->object_guid
- Returns
- object;
◆ getObjectId()
Get newly created object
- Returns
- void|integer
◆ initAttributes()
◆ save()
A object save function
Note updateObject does same job but its requires extra parements updateObject may be removed in v5
- Returns
- boolean
Reimplemented from OssnEntities.
◆ searchObject()
searchObject |
( |
array |
$params = array() | ) |
|
Search object by its title, description etc
- Parameters
-
array | $params | A valid options in format: 'search_type' => true(default) to performs matching on a per-character basis false for performs matching on exact value. 'subtype' => Valid object subtype 'type' => Valid object type 'title' => Valid object title 'description' => Valid object description 'owner_guid' => A valid owner guid, which results integer value 'entities_pairs' => A entities pairs options, must be array 'count' => True if you wanted to count search items. 'limit' => Result limit default, Default is 10 values 'order_by'=> To show result in sepcific order. Default is Assending |
reutrn array|false;
◆ updateObject()
updateObject |
( |
|
$name, |
|
|
|
$value, |
|
|
|
$guid |
|
) |
| |
Update Object;
- Parameters
-
array | $name | Names |
array | $value | Values |
integer | $guid | Object guid |
- Returns
- boolean
The documentation for this class was generated from the following file:
- source/classes/OssnObject.php