Example #1
0
 public function getAllByWorkflowSchemeID($scheme_id)
 {
     $crit = $this->getCriteria();
     $crit->addJoin(Workflows::getTable(), Workflows::ID, self::WORKFLOW_ID, array(), Criteria::DB_INNER_JOIN);
     $crit->addJoin(WorkflowIssuetype::getTable(), WorkflowIssuetype::WORKFLOW_ID, self::WORKFLOW_ID, array(), Criteria::DB_INNER_JOIN);
     $crit->addWhere(WorkflowIssuetype::WORKFLOW_SCHEME_ID, $scheme_id);
     $res = $this->doSelect($crit);
     $steps = array();
     if ($res) {
         while ($row = $res->getNextRow()) {
             $step_id = $row->get(self::ID);
             $steps[$step_id] = $step_id;
         }
     }
     return $steps;
 }
Example #2
0
 public function unassociateIssuetype(\thebuggenie\core\entities\Issuetype $issuetype)
 {
     tables\WorkflowIssuetype::getTable()->setWorkflowIDforIssuetypeIDwithSchemeID(null, $issuetype->getID(), $this->getID());
 }
Example #3
0
 public function loadFixtures()
 {
     // Load initial settings
     tables\Settings::getTable()->loadFixtures($this);
     \thebuggenie\core\framework\Settings::loadSettings();
     // Load group, users and permissions fixtures
     Group::loadFixtures($this);
     // Load initial teams
     Team::loadFixtures($this);
     // Set up user states, like "available", "away", etc
     Userstate::loadFixtures($this);
     // Set up data types
     list($b_id, $f_id, $e_id, $t_id, $u_id, $i_id, $ep_id) = Issuetype::loadFixtures($this);
     $scheme = IssuetypeScheme::loadFixtures($this);
     tables\IssueFields::getTable()->loadFixtures($this, $scheme, $b_id, $f_id, $e_id, $t_id, $u_id, $i_id, $ep_id);
     Datatype::loadFixtures($this);
     // Set up workflows
     Workflow::loadFixtures($this);
     WorkflowScheme::loadFixtures($this);
     tables\WorkflowIssuetype::getTable()->loadFixtures($this);
     // Set up left menu links
     tables\Links::getTable()->loadFixtures($this);
 }