コード例 #1
0
ファイル: _arboTree.php プロジェクト: lendji4000/compose
 if (count($tree_childs) > 0) {
     foreach ($tree_childs as $tree_child) {
         $isOpen = false;
         $openHidden = "";
         $closeHidden = "eisge-hidden-tree";
         if (isset($opened_ei_nodes)) {
             foreach ($opened_ei_nodes as $i => $node) {
                 if ($node->getEiTreeId() == $tree_child['id']) {
                     //echo 'good';
                     $isOpen = true;
                     $openHidden = "eisge-hidden-tree";
                     $closeHidden = "";
                 }
             }
         }
         $img_node = MyFunction::getImgTreeNode($tree_child);
         if (!isset($class_action)) {
             $class_action = 'get_path_function';
         }
         //Si on utilise l'arbre des fonctions dans le menu d'administration des fonctions, on change la classe
         if (isset($showFunctionContent) && $showFunctionContent) {
             $class_action = 'showFunctionContent';
         }
         if (isset($is_function_context) && $is_function_context) {
             $class_action = 'addFunctionToSubject';
         }
         if (isset($is_step_context) && $is_step_context) {
             $class_action = 'showFunctionSubjects';
         }
         if (isset($impactContext) && $impactContext) {
             $class_action = 'addFunctionHasImpact';