/** * 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')); }
/** * 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')); }