/**
  * Add required resources for a custom interaction (css, js) in the item directory
  * 
  * @throws common_exception_Error
  */
 public function addRequiredResources()
 {
     $typeIdentifier = $this->getRequestParameter('typeIdentifier');
     $itemUri = urldecode($this->getRequestParameter('uri'));
     $item = new core_kernel_classes_Resource($itemUri);
     $resources = $this->registry->addRequiredResources($typeIdentifier, $item);
     $this->returnJson(array('success' => true, 'resources' => $resources));
 }
 /**
  * constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->registryClass = new core_kernel_classes_Class('http://www.tao.lu/Ontologies/QtiItemPci.rdf#PciCreatorHook');
     $this->storage = tao_models_classes_service_FileStorage::singleton();
     $this->propTypeIdentifier = new core_kernel_classes_Property('http://www.tao.lu/Ontologies/QtiItemPci.rdf#PciCreatorIdentifier');
     $this->propDirectory = new core_kernel_classes_Property('http://www.tao.lu/Ontologies/QtiItemPci.rdf#PciCreatorDirectory');
 }