Example #1
0
File: comp.php Project: Eteng/lorb
 public final function pushRoute()
 {
     $act1 = $this->reg->front->getAct();
     $dix = $this->reg->maps->getPathById($this->getNavName(), $act1);
     //@todo: Add validations here
     if (isBarren($dix)) {
         if (method_exists($this, $act1)) {
             call_user_func(array($this, $act1));
         } else {
             print "<h3>Routine Missing</h3>";
         }
     } else {
         $m_x = ArrayHelpers::XMLElemToArray($dix[0]);
         if (isset($m_x['method'])) {
             if (method_exists($this, $m_x['method'])) {
                 call_user_func(array($this, $m_x['method']));
             } else {
                 print "<h3>Routine Method Missing</h3>";
             }
         } else {
             print "<h3>Routine Missing in Class</h3>";
         }
     }
 }
Example #2
0
 private function processMatch($map)
 {
     $line = array();
     foreach ($map as $k => $v) {
         if ($v instanceof SimpleXMLElement) {
             $line = ArrayHelpers::XMLElemToArray($v);
         }
     }
     return $line;
 }