本文整理匯總了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();
}