Example #1
0
 /**
  * Gets an array with the full module information
  * @param zibo\admin\module\Module $module The module information
  * @return array Array with the attributes of the module
  */
 private function getFullModuleArray(Module $module)
 {
     $dependencies = $this->getDependencyArray($module->getDependencies());
     $versions = $this->getVersionArray($module->getVersions());
     $array = $this->getModuleArray($module);
     if ($dependencies) {
         $array[RepositoryModule::TAG_DEPENDENCY] = $dependencies;
     }
     if ($versions) {
         $array[RepositoryModule::TAG_VERSIONS] = $versions;
     }
     return $array;
 }