本文整理汇总了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;
}