Esempio n. 1
0
 public function getLinks($args)
 {
     foreach ($this->extensions as $extension) {
         if (in_array($args->option, $extension->getOption())) {
             $items = $extension->getLinks($args);
         }
     }
     $array = array();
     $result = array();
     if (isset($items)) {
         foreach ($items as $item) {
             $array[] = array('id' => isset($item['id']) ? WFEditor::xmlEncode($item['id']) : '', 'url' => isset($item['url']) ? WFEditor::xmlEncode($item['url']) : '', 'name' => WFEditor::xmlEncode($item['name']), 'class' => $item['class']);
         }
         $result = array('folders' => $array);
     }
     return $result;
 }