ExportManager
class ExportManager extends BaseManager
Export manager handles linking and generation of exports
Methods
Helps paginate models using the query bulder. Bit more complicated than the native array method, but works better for larger data sets
Create new export. The SRN parameter is the parent resource SRN.
No description
Update workflow without changing dirty state
No description
No description
No description
No description
No description
No description
No description
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 26
Export
create($id, $workflow_id, $nopush = false)
Create new export. The SRN parameter is the parent resource SRN.
at line line 76
update($id, $input, $user = false, $nopush = false)
at line line 165
object
updateWorkflow(int $id, int $workflow)
Update workflow without changing dirty state