加载对象信息
@param array $configData
179779
private function loadObjMap(array $configData)
    {
        $infos=[];
        foreach ($configData as $cfg){
            if(array_key_exists(self::OBJECT_CONFIG_KEY_CLASS, $cfg)){
                $info=new ObjectInfo();
                $info->class=$cfg[self::OBJECT_CONFIG_KEY_CLASS];
                $info->id=array_key_exists(self::OBJECT_CONFIG_KEY_ID, $cfg)?$cfg[self::OBJECT_CONFIG_KEY_ID]:$cfg[self::OBJECT_CONFIG_KEY_CLASS];

                //属性
                $info->propertyInfos=[];
                foreach ($cfg as $key=>$value){
                    if($key!=self::OBJECT_CONFIG_KEY_ID
                        && $key!=self::OBJECT_CONFIG_KEY_CLASS
                        && $key!=self::OBJECT_CONFIG_KEY_SINGLETON
                        && $key!=self::OBJECT_CONFIG_KEY_CONSTRUCTOR_ARGS){
                        $info->propertyInfos[$key]=$value;
                    }
                }

                //单例模式
                $info->singleton=true;
                if(array_key_exists(self::OBJECT_CONFIG_KEY_SINGLETON, $cfg)){
                    $val=$cfg[self::OBJECT_CONFIG_KEY_SINGLETON];
                    if($val=="0"||strtolower($val)=="false"){
                        $info->singleton=false;
                    }
                }

                //构造器参数
                $info->constructorArgs=[];
                if(array_key_exists(self::OBJECT_CONFIG_KEY_CONSTRUCTOR_ARGS, $cfg)){
                    $args=$cfg[self::OBJECT_CONFIG_KEY_CONSTRUCTOR_ARGS];
                    foreach ($args as $key=>$value){
                        $info->constructorArgs[$key]=$value;
                    }
                }

                $infos[$info->id]=$info;
            }
        }
        return $infos;
    }
1031221
public function httpExceptionResponse($configData)
    {
        $components = $this->builder->components();
        
        return new Processors\HTTP\Response\Exception(
            $components->debug(),
            $components->http(),
            $components->template(),
            $configData
        );
    }
1290797
public function setConfig($config)
    {
        if (is_array($config)) {
            $this->config = $config;
        } else {
            $this->config = (array) gplcart_config_get((string) $config);
            $this->setDb($this->config['database']);
            $this->config = array_merge($this->config, $this->select());
        }
    }
1199921
function _setConfig(configUpdate) {
        config = brackets._configureJSCodeHints.config;
        postMessage({
            type: MessageIds.SET_CONFIG,
            config: configUpdate
        });
    }
421236
public function addIncluded(Data $newData)
    {
        $this->included[$newData->getType()][$newData->getId()] = $newData;
    }
1049412
public function addConnection(array $config, $name = 'default')
	{
		$connections = $this->prop['database.connections'];
		$connections[$name] = $config;
		$this->prop['database.connections'] = $connections;
	}
50115
public function loadConfig(array $config)
    {
        $this->devServerEnabled = $config['dev_server_enable'];
        $this->devServerHost = $config['dev_server_host'];
        $this->devServerPort = $config['dev_server_port'];
    }
785144
public function add(Array $addData)
    {
        $addFields = array();
        $addValues = array();
        foreach ($addData as $key => $value) {
            $addFields[] = $key;
            $addValues[] = '\'' . $value . '\'';
        }
        $fields = implode(',', $addFields);
        $values = implode(',', $addValues);
        $this->sql = "INSERT INTO {$this->_table} ($fields)VALUES($values)";
        return $this->execute()->rowCount();
    }
858007
public function setConfig($configOrKey, $config = null) {
        if ($config !== null) {
            $this->config[$configOrKey] = $config;
        }
        else {
            $this->config = ($configOrKey !== null ? $configOrKey : array());
        }
    }
1334668
protected function cacheData($key, $data, $config = [])
    {
        $cache = Container::get('cache');

        if (isset($config['tag'])) {
            $cache->tag($config['tag'])->set($key, $data, $config['expire']);
        } else {
            $cache->set($key, $data, $config['expire']);
        }
    }
306994
public function httpNotFoundResponse($configData)
    {
        $components = $this->builder->components();
        
        return new Processors\HTTP\Response\NotFound(
            $components->http(),
            $components->template(),
            $configData
        );
    }
188632
private function setConfigStructs(
        ConfigAwareStruct $configAwareStruct,
        ConfigDefinitionAwareInterface $configDefinitionAware,
        array $configurationData
    ): void {
        $configDefinitions = $configDefinitionAware->getConfigDefinitions();

        foreach ($configurationData as $configKey => $hash) {
            $configStruct = new ConfigStruct();
            $configStruct->fillParametersFromHash($configDefinitions[$configKey], $hash, true);
            $configAwareStruct->setConfigStruct($configKey, $configStruct);
        }
    }
886866
public function update_config(&$data) {
        if (!empty($data->criteria_duration)) {
            $this->course = $data->id;
            $this->enrolperiod = $data->criteria_duration_days;
            $this->insert();
        }
    }
1368199
protected function logInitialization(array $logData)
    {
        if (!$this->site->getSolrConfiguration()->getLoggingIndexingIndexQueueInitialization()) {
            return;
        }

        $logSeverity = isset($logData['error']) ? SolrLogManager::ERROR : SolrLogManager::NOTICE;
        $logData = array_merge($logData, [
            'site' => $this->site->getLabel(),
            'indexing configuration name' => $this->indexingConfigurationName,
            'type' => $this->type,
        ]);

        $message = 'Index Queue initialized for indexing configuration ' . $this->indexingConfigurationName;
        $this->logger->log($logSeverity, $message, $logData);
    }
322145
protected function putData(array $newData)
    {
        // opening up the file, and creating an exclusive lock
        $handle = fopen($this->locksFile, 'a+');
        flock($handle, LOCK_EX);

        // We can only truncate and rewind once the lock is acquired.
        ftruncate($handle, 0);
        rewind($handle);

        fwrite($handle, serialize($newData));
        flock($handle, LOCK_UN);
        fclose($handle);
    }
1146070
public function storeNewCartData($cartData)
    {
        $cartItems = $cartData['items'];
        unset($cartData['items']);
        $cartId = $this->storeCartDetails($cartData);

        foreach ($cartItems as $cartItem) {
            $this->addCartItem($cartId, $cartItem);
        }
    }
601428
public function init(array $frontendData): void
    {
        $this->_frontendData = Hash::merge(
            $this->_frontendData, $frontendData
        );
        $this->_includeAppController();
        $this->_includeComponents();
    }