Exemplo n.º 1
0
Arquivo: Main.php Projeto: kingsj/core
 /**
  * Callback to search annotated PHP classes
  *
  * @param \Includes\Decorator\DataStructure\Graph\Classes $node Current node
  *
  * @return void
  */
 public function checkClassForListChildTag(\Includes\Decorator\DataStructure\Graph\Classes $node)
 {
     if (!$node->isLowLevelNode() && ($lists = $node->getTag(static::TAG_LIST_CHILD))) {
         $data = array('child' => $node->getTopLevelNode()->getClass());
         foreach ($lists as $tags) {
             $this->annotatedPHPCLasses[] = $data + $tags;
         }
     }
 }
Exemplo n.º 2
0
 /**
  * Callback to search annotated PHP classes
  *
  * @param \Includes\Decorator\DataStructure\Graph\Classes $node Current node
  *
  * @return void
  */
 public function checkClassForListChildTag(\Includes\Decorator\DataStructure\Graph\Classes $node)
 {
     if (!$node->isLowLevelNode() && preg_match('/^XLite(?:\\\\Module\\\\[A-Za-z0-9]+\\\\[A-Za-z0-9]+)?\\\\View\\\\/Ss', $node->getClass())) {
         $lists = $node->getTag(static::TAG_LIST_CHILD);
         if ($lists) {
             $data = array('child' => $node->getTopLevelNode()->getClass());
             foreach ($lists as $tags) {
                 $this->annotatedPHPCLasses[] = $data + $tags;
             }
         }
     }
 }