protected static function _populateWorkflows()
 {
     if (self::$_workflows === null) {
         self::$_workflows = array();
         if ($res = TBGWorkflowsTable::getTable()->getAll()) {
             while ($row = $res->getNextRow()) {
                 $workflow = TBGContext::factory()->TBGWorkflow($row->get(TBGWorkflowsTable::ID), $row);
                 if (self::$_core_workflow === null) {
                     self::$_core_workflow = $workflow;
                 }
                 self::$_workflows[$row->get(TBGWorkflowsTable::ID)] = $workflow;
             }
         }
     }
 }
Пример #2
0
 protected static function _populateWorkflows()
 {
     if (self::$_workflows === null) {
         self::$_workflows = TBGWorkflowsTable::getTable()->getAll();
     }
 }