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; } } } }
protected static function _populateWorkflows() { if (self::$_workflows === null) { self::$_workflows = TBGWorkflowsTable::getTable()->getAll(); } }