本文整理匯總了PHP中Video::getServices方法的典型用法代碼示例。如果您正苦於以下問題:PHP Video::getServices方法的具體用法?PHP Video::getServices怎麽用?PHP Video::getServices使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Video
的用法示例。
在下文中一共展示了Video::getServices方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get_video_services
private function get_video_services()
{
return \Video::getServices();
}
示例2: catch
if ($_GET['get'] == 'kinopoisk_info_by_id') {
$response['result'] = vclubinfo::getInfoById($_GET['kinopoisk_id']);
}
}
}
} catch (KinopoiskException $e) {
echo $e->getMessage();
$logger = new Logger();
$logger->setPrefix("vclubinfo_");
// format: [date] - error_message - [base64 encoded response];
$logger->error(sprintf("[%s] - %s - \"%s\"\n", date("r"), $e->getMessage(), base64_encode($e->getResponse())));
}
} elseif ($_GET['get'] == 'tv_services') {
$response['result'] = Itv::getServices();
} elseif ($_GET['get'] == 'video_services') {
$response['result'] = Video::getServices();
} elseif ($_GET['get'] == 'radio_services') {
$response['result'] = Radio::getServices();
} elseif ($_GET['get'] == 'module_services') {
$response['result'] = Module::getServices();
} elseif ($_GET['get'] == 'option_services') {
$option_services = Config::getSafe('option_services', array());
$response['result'] = array_map(function ($item) {
return array('id' => $item, 'name' => $item);
}, $option_services);
}
$output = ob_get_contents();
ob_end_clean();
if ($output) {
$response['output'] = $output;
}