PrintdocumentManager
class PrintdocumentManager extends BaseManager
Print document manager
Methods
Helps paginate models using the query bulder. Bit more complicated than the native array method, but works better for larger data sets
Find document
Find first based on params
Find first content by ID
Find first content by UUID
Find first item by label
Find first item by tracking label
No description
Update print document object.
Set the lock fields on a document. Technically, this is non-exclusive and non-binding.
Unset the lock fields on a document. Document locks are non-exclusive.
No description
Details
in BaseManager at line line 23
object
save(object $obj)
Save handler, because DRY
in BaseManager at line line 60
Paginator
getPaginator(integer $page = 1, integer $limit = 50)
Helps paginate models using the query bulder. Bit more complicated than the native array method, but works better for larger data sets
Because it's based on Phalcon's QueryBuilder, it supports a fluent filtering interface:
$manager = $this->foo_manager; $items = $manager->getPaginator(1, 20) ->orderBy('created_at desc') ->where('name = :name:', array('name' => $name)) ->andWhere('type = :type:', array('type' => $type)) ->paginate(); echo json_encode($items);
in BaseManager at line line 80
boolean
restDelete(number $id)
Delete an object with rest
in BaseManager at line line 103
restCreate(array $data)
Create a new object
in BaseManager at line line 117
restUpdate(int $id, array $data)
Update an existing object
at line line 25
mixed
find(mixed $parameters = null)
Find document
at line line 35
mixed
findFirst(mixed $params = null)
Find first based on params
at line line 45
mixed
findFirstById(mixed $params = null)
Find first content by ID
at line line 55
mixed
findFirstByUuid($uuid)
Find first content by UUID
at line line 65
mixed
findFirstByLabel(string $label)
Find first item by label
at line line 75
mixed
findFirstByTrackingLabel(string $label)
Find first item by tracking label
at line line 84
object
create($input, $user = false)
at line line 113
object
update($id, $input, $user = false)
Update print document object.
at line line 187
object
setPrintLock(integer $id, object $user, boolean $force = false)
Set the lock fields on a document. Technically, this is non-exclusive and non-binding.
at line line 220
object
removePrintLock(integer $id, object $user, boolean $force = false)
Unset the lock fields on a document. Document locks are non-exclusive.