- ⌂ Object
- Methods
Object::store()
Store is just an alias for approve() for objects with a Content Type that extends Object. 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();