本文整理汇总了PHP中adminReadBase::__getConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP adminReadBase::__getConfig方法的具体用法?PHP adminReadBase::__getConfig怎么用?PHP adminReadBase::__getConfig使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类adminReadBase
的用法示例。
在下文中一共展示了adminReadBase::__getConfig方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __getConfig
public function __getConfig()
{
$total = $this->server->count();
if ($total['total'] < 1) {
$this->errorOutput('REDIRECT TO ' . APP_UNIQUEID . ' program_record_server');
}
parent::__getConfig();
}
示例2: __getConfig
public function __getConfig()
{
$total = $this->mRecordConfig->count('');
if ($total['total'] < 1) {
$this->errorOutput('REDIRECT TO ' . APP_UNIQUEID . ' record_config');
}
parent::__getConfig();
}
示例3: __getConfig
public function __getConfig()
{
//获取mediaserver的里面视频类型的配置
if ($this->settings['App_mediaserver']) {
$curl = new curl($this->settings['App_mediaserver']['host'], $this->settings['App_mediaserver']['dir']);
$curl->setReturnFormat('json');
$curl->setCurlTimeOut(10);
//设置curl超时时间10秒
$curl->initPostData();
$curl->addRequestData('a', 'settings');
$m_config = $curl->request('configuare.php');
}
if ($m_config && is_array($m_config) && $m_config['base']['video_type']['allow_type']) {
$video_type = $m_config['base']['video_type']['allow_type'];
} else {
$video_type = $this->default_type;
}
$video_type_arr = explode(',', $video_type);
$flash_video_type = '';
foreach ($video_type_arr as $k => $v) {
$flash_video_type .= '*' . $v . ';';
}
$video_types = str_replace('.', '', $video_type);
$this->settings['flash_video_type'] = $flash_video_type;
$this->settings['video_type'] = $video_types;
//增加第三方对接云配置输出
$this->settings['video_cloud'] = array('open' => $m_config['base']['video_cloud'], 'title' => $m_config['base']['video_cloud_title']);
parent::__getConfig();
}