Esempio n. 1
0
 /**
  * 
  * @param type $request
  * @throws Exception
  */
 public function __construct($request)
 {
     parent::__construct($request);
     $this->parseManifest();
     if (is_null($this->repository)) {
         throw new Exception('Repository unspecified');
     }
     $repository = $this->repository;
     $repository::setRelationMap($this->relationMap);
     $repository::setObjectName($this->objectName);
     $repository::setObjectClass($this->objectClass);
     if (!empty($this->secondaryObjectClass)) {
         $repository::setSecondaryObjectClass($this->secondaryObjectClass);
     }
     $rc = new \ReflectionClass(get_class($this));
     $moduleName = Informations::getModuleFromPath($rc->getFileName());
     static::$moduleShortName = Informations::getModuleSlugName($moduleName);
     $this->objectBaseUrl = '/' . static::$moduleShortName . '/' . $this->objectName;
 }
Esempio n. 2
0
 /**
  * 
  * @param type $request
  */
 public function __construct($request)
 {
     parent::__construct($request);
 }