protected function init($args) { parent::init($args); if (!isset($args['PartnerID'])) { throw new Exception('Kaltura PartnerID not included'); } $this->token = $args['token']; if (!isset($args['PartnerSecret'])) { throw new Exception('Kaltura PartnerSecret not included'); } define("KALTURA_PARTNER_ID", PartnerID); define("KALTURA_PARTNER_ADMIN_SECRET", PartnerSecret); //define session variables $this->partnerUserID = 'ANONYMOUS'; //construct Kaltura objects for session initiation $config = new KalturaConfiguration(KALTURA_PARTNER_ID); $client = new KalturaClient($config); $ks = $client->session->start(KALTURA_PARTNER_ADMIN_SECRET, $this->partnerUserID, KalturaSessionType::ADMIN); $client->setKs($ks); $this->setBaseURL("http://www.kaltura.com/api_v3"); }
protected function init($args) { parent::init($args); if (isset($args['TAG']) && strlen($args['TAG'])) { $this->tag = $args['TAG']; } if (isset($args['AUTHOR']) && strlen($args['AUTHOR'])) { $this->author = $args['AUTHOR']; } }
protected function init($args) { parent::init($args); if (isset($args['NOTICE_EXPIRATION'])) { $this->NOTICE_EXPIRATION = $args['NOTICE_EXPIRATION']; } else { $this->NOTICE_EXPIRATION = 7 * 24 * 60 * 60; // 1 week } if (isset($args['NOTICE_MAX_COUNT'])) { $this->NOTICE_MAX_COUNT = $args['NOTICE_MAX_COUNT']; } }
protected function init($args) { parent::init($args); $this->setBaseUrl('http://gdata.youtube.com/feeds/mobile/videos'); $this->addFilter('alt', 'jsonc'); //set the output format to json $this->addFilter('format', 6); //only return mobile videos $this->addFilter('v', 2); // version 2 $this->addFilter('orderby', 'published'); if (isset($args['TAG'])) { $this->addFilter('category', $args['TAG']); } if (isset($args['AUTHOR'])) { $this->addFilter('author', $args['AUTHOR']); } }
protected function init($args) { parent::init($args); if (!isset($args['token'])) { throw new Exception('Brightcove token not included'); } $this->token = $args['token']; if (!isset($args['playerKey'])) { throw new Exception('Brightcove playerKey not included'); } $this->playerKey = $args['playerKey']; if (!isset($args['playerId'])) { throw new Exception('Brightcove playerId not included'); } $this->playerId = $args['playerId']; $this->setBaseURL("http://api.brightcove.com/services/library"); if (isset($args['TAG'])) { $this->category = $args['TAG']; } }
protected function init($args) { $args['EVENT_CLASS'] = isset($args['EVENT_CLASS']) ? $args['EVENT_CLASS'] : self::DEFAULT_EVENT_CLASS; parent::init($args); }
protected function init($args) { parent::init($args); // static map support required; dynamic optional if (isset($args['STATIC_MAP_CLASS'])) $this->staticMapClass = $args['STATIC_MAP_CLASS']; else $this->staticMapClass = $this->DEFAULT_MAP_CLASS; // other optional fields if (isset($args['JS_MAP_CLASS'])) $this->dynamicMapClass = $args['JS_MAP_CLASS']; if (isset($args['STATIC_MAP_BASE_URL'])) $this->staticMapBaseURL = $args['STATIC_MAP_BASE_URL']; if (isset($args['DYNAMIC_MAP_BASE_URL'])) $this->dynamicMapBaseURL = $args['DYNAMIC_MAP_BASE_URL']; $this->searchable = isset($args['SEARCHABLE']) ? ($args['SEARCHABLE'] == 1) : false; if (isset($args['DEFAULT_ZOOM_LEVEL'])) $this->defaultZoomLevel = $args['DEFAULT_ZOOM_LEVEL']; }
protected function init($args) { parent::init($args); $this->searchable = isset($args['SEARCHABLE']) ? $args['SEARCHABLE'] == 1 : false; if (isset($args['DEFAULT_ZOOM_LEVEL'])) { $this->defaultZoomLevel = $args['DEFAULT_ZOOM_LEVEL']; } $this->categoryId = mapIdForFeedData($args); }