Exemplo n.º 1
0
 /**
  * Get list of dependent modules as Doctrine entities
  *
  * @return array
  */
 public function getDependentModules()
 {
     $result = array();
     $current = \Includes\Decorator\ADecorator::getModulesGraph()->find($this->getActualName());
     if ($current) {
         foreach ($current->getChildren() as $node) {
             $class = $node->getActualName();
             $result[$class] = $this->getRepository()->findOneBy(array_combine(array('author', 'name'), explode('\\', $class)), array('installed' => 'DESC'));
         }
     }
     return array_filter($result);
 }
Exemplo n.º 2
0
 /**
  * Return list of relative module paths
  *
  * @return array
  */
 protected static function getModuleQuotedPaths()
 {
     if (!isset(static::$quotedPaths)) {
         static::$quotedPaths = array();
         \Includes\Decorator\ADecorator::getModulesGraph()->walkThrough(array(get_called_class(), 'getModuleQuotedPathsCallback'));
     }
     return static::$quotedPaths;
 }