Ejemplo n.º 1
0
 /**
  * Get list of project components that can be instantiated
  */
 public function caninstantiateAction()
 {
     $list = array();
     $project = $this->_getProject();
     $items = $project->getObjects();
     foreach ($items as $name => $object) {
         if (!$object->isInstance() && $object->isExtendedComponent() && Designer_Project::isVisibleComponent($object->getClass())) {
             $list[] = array('name' => $name);
         }
     }
     Response::jsonSuccess($list);
 }