/** * Constructor * @param object $context * @param object $localconfig */ public function __construct($context, array $localconfig) { parent::__construct($context, $localconfig); $this->_binumi_client = new binumi_client(); $host = $this->_binumi_client->get_host(); $this->_re_embed_url = "/({$host})\\/index\\/video/"; }
/** * Constructor * @param object $context * @param object $localconfig */ public function __construct($context, array $localconfig) { parent::__construct($context, $localconfig); $this->_mcore_client = new mediacore_client(); $host = $this->_mcore_client->get_host(); $this->_re_api1_public_urls = "/({$host})[:0-9]*\\/media\\/[:a-z0-9_-]+/"; $this->_re_api2_public_urls = "/({$host})[:0-9]*\\/api2\\/media\\/[0-9]+\\/view/"; $this->_re_embed_url = "/({$host})[:0-9]*\\/media\\/[:a-z0-9_-]+\\/embed_player.*/"; }
/** * Set any context-specific configuration for this filter. * * @param string $filterfunction * @param object $context The current context. * @param array $config Any context-specific configuration for this filter. */ public function __construct($filterfunction, $context, array $localconfig) { parent::__construct($context, $localconfig); $this->filterfunction = $filterfunction; $this->courseid = get_courseid_from_context($this->context); }
/** * Set any context-specific configuration for this filter. * @param string $filterfunction * @param object $context The current course id. * @param object $context The current context. * @param array $config Any context-specific configuration for this filter. */ public function __construct($filterfunction, $courseid, $context, array $localconfig) { parent::__construct($courseid, $context, $localconfig); $this->filterfunction = $filterfunction; }
/** * Constructor * @param object $context * @param object $localconfig */ public function __construct($context, array $localconfig) { parent::__construct($context, $localconfig); $this->targetString = "/placeholderStringForElevatorDoNotRemove/"; }