本文整理匯總了PHP中Component::loadConfig方法的典型用法代碼示例。如果您正苦於以下問題:PHP Component::loadConfig方法的具體用法?PHP Component::loadConfig怎麽用?PHP Component::loadConfig使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Component
的用法示例。
在下文中一共展示了Component::loadConfig方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: loadConfig
/**
* Loads the configuration data for the component from CConfig.json file
*
* @param int $pre A optional prefix for the Setting table.
*
* @return an component object, which represents the configuration
*/
public function loadConfig($pre = '')
{
// initialize component
$this->_conf = $this->_conf->loadConfig($pre);
$this->query = array(CConfig::getLink($this->_conf->getLinks(), 'out'));
}
示例2: loadConfig
/**
* Loads the configuration data for the component from CConfig.json file
*
* @param int $preChoice A optional prefix for the Choice table.
* @param int $preForm A optional prefix for the Form table.
* @param int $preExercise A optional prefix for the Exercise table.
*
* @return an component object, which represents the configuration
*/
public function loadConfig($preChoice = '', $preForm = '', $preExercise = '')
{
// initialize component
$this->_conf = $this->_conf->loadConfig($preChoice, $preForm, $preExercise);
$this->query = array(CConfig::getLink($this->_conf->getLinks(), 'out'));
}