Ejemplo n.º 1
0
 /**
  * Returns an array of modulenames with the specified capability
  * and which are installed and enabled, of course
  *
  * @final
  * @param an id specifying which capability to check for, could be "wysiwyg" etc.
  * @param associative array further params to get more detailed info about the capabilities. Should be syncronized with other modules of same type
  * @return array
  */
 public final function GetModulesWithCapability($capability, $params = array())
 {
     $result = array();
     $tmp = ModuleOperations::get_modules_with_capability($capability, $params);
     if (is_array($tmp) && count($tmp)) {
         for ($i = 0; $i < count($tmp); $i++) {
             if (is_object($tmp[$i])) {
                 $result[] = get_class($tmp[$i]);
             } else {
                 $result[] = $tmp[$i];
             }
         }
     }
     return $result;
 }