/** * 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(); }
/** * 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()); }
public function __construct($options = array()) { parent::__construct($options); }