コード例 #1
0
 /**
  * get the lang of the class in case we want to filter the media on language
  *
  * @param array $options
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     \common_ext_ExtensionsManager::singleton()->getExtensionById('taoMediaManager');
     $this->lang = isset($options['lang']) ? $options['lang'] : '';
     $this->rootClassUri = isset($options['rootClass']) ? $options['rootClass'] : MediaService::singleton()->getRootClass();
 }
コード例 #2
0
 /**
  * Constructor of the smooth model, expects a persistence in the configuration
  * 
  * @param array $configuration
  * @throws common_exception_MissingParameter
  */
 public function __construct($options = array())
 {
     if (!isset($options['inner'])) {
         throw new common_exception_MissingParameter('inner', __CLASS__);
     }
     parent::__construct($options);
     $inner = $this->getInnerModel();
     $this->rdf = new WrapperRdf($inner->getRdfInterface(), $this);
     $this->rdfs = new WrapperRdfs($inner->getRdfsInterface(), $this->getWorkspaceModel()->getRdfsInterface());
 }
コード例 #3
0
ファイル: Intersection.php プロジェクト: nagyist/generis
 public function __construct($options = array())
 {
     parent::__construct($options);
 }