/** * Recupere la liste des actions pour un scenario * @param db $db * @return array */ public function getActions($db) { $actions = array(); $rows = getActionsRowsForScenario($db, $this->scnidscn); foreach ($rows as $row) { $actions[] = Action_model::Action_modelFromRow($row); } return $actions; }
/** * Recupere l'action a partir de son id */ static function getAction($db, $actidact) { $row = getActionRow($db, $actidact); return Action_model::Action_modelFromRow($row); }