- ⌂ cObject
- Methods
- Constructor
- add_variant()
- approve()
- as_array()
- can_add_variant()
- can_delete_variant()
- can_edit_variant()
- can_reorder_variant()
- clone()
- delete()
- edit_variant()
- enum()
- get_active_object()
- get_all_variants()
- get_attributes()
- get_dimensions()
- get_dimension_with()
- get_parent()
- get_primary_cpath()
- get_variant()
- Keywords()
- lock_object()
- reload_data()
- repo()
- revert()
- save()
- store()
- unlock_object()
- update_from_array()
- validate()
cObject::store()
Store is just an alias for approve() for objects with a Content Type that extends cObject. See Content::store() to learn about the different behavior for objects with a Content Type that extends Content.
Store the object and its embedded objects to the working copy of the object in the repository.
Prototype
boolean store(array $options = [])
Parameters
- $options - See approve() options.
Return
TRUE if the object was approved and committed to the repository. Otherwise, FALSE.
Example
$repo = \comand::repo();
$pub_proc = $repo->new_object('PublicationProcedure');
$pub_proc->Filename = 'index.html';
$pub_proc->store();