예제 #1
0
 /**
  * @param $g Gadget
  * @return array
  */
 private function fakeMetadata(Gadget $g)
 {
     return array('settings' => array('rights' => $g->getRequiredRights(), 'skins' => $g->getRequiredSkins(), 'default' => $g->isOnByDefault(), 'hidden' => false, 'shared' => false, 'category' => $g->getCategory()), 'module' => array('scripts' => $g->getScripts(), 'styles' => $g->getStyles(), 'dependencies' => $g->getDependencies(), 'messages' => array()));
 }