将数据中多个字段的图片地址转换为真实地址

@param array $data
@param array $keys
485416
public function onPostImageDataLoad(&$data, array $keys)
    {
        foreach ($keys as $key) {
            if (isset($data[$key])) {
                $data[$key] = wei()->cdn->convertToRealUrl($data[$key]);
            }
        }
    }
1041503
private function _getSecondaryKeys($data, $key = null)
    {
        if ($key) {
            $data = ArrayHelper::getValue($data, $key, []);
        }

        return ArrayHelper::getColumn($data, $this->relSecondaryKey);
    }
1185640
static public function extract($data, $keys=null)
    {
        if ($data) {
            if ($keys) {
                $list = [];
                $keys = static::explode('\,\|', $keys);
                foreach ($keys as $k) {
                    $list[] = isset($data[$k]) ? $data[$k] : null;
                }
                return $list;
            }
        }
        return $data;
    }
1076792
public function setup($data = array())
	{

		foreach (self::$_KEYS as $k)
		{
			if (array_key_exists($k, $data))
			{
				$this->_API[$k] = self::verifySetup($k, $data[$k]);
			}
		}
	}
239641
public function save(string $key, array $data)
    {
        $this->useRedis(function($resource, $redis) use($key, $data){
            $redis->hset($this->getStoreKey(), $key, $data);
        });
    }
36439
public function pick(array $keys) {
        $data = [];

        foreach ($keys as $key) {
            array_set($data, $key, $this->get($key));
        }

        return $data;
    }
202822
public static function keyedAssocToHierarchical($data, $sortKeys = self::DO_NOT_SORT_KEYS)
    {
        if(self::SORT_KEYS == $sortKeys){
            ksort($data);
        }
        $result = array();
        foreach($data as $key=>$value){
            if($value!==null){
                $keys = explode('.',$key);
                $node = $value;
                for($i = count($keys); $i>0; $i--){
                    $k = $keys[$i-1];
                    $node = array($k => $node);
                }
                $result = array_merge_recursive($result, $node);
            }
        }

        return $result;
    }
313110
protected function arrayDotKeysFlattern(array $data)
    {
        foreach ($data as $name => $values) {
            if ($this->isIterable($values)) {
                foreach ($values as $key => $key_value) {
                    $data["$name.$key"] = $values[$key];
                }
                unset($data[$name]);
            }
        }
        return $data;
    }
55375
protected function getRegularValues($data, $key, array $keys) {
        $values = [];

        if (count($keys) === 0) {
            $values[$key] = $this->propertyReader->getProperty($data, $key);
        }

        if (count($keys) > 0) {
            $value = $this->propertyReader->getProperty($data, $key);
            $nestedValues = $this->getValues($value, $keys);

            foreach ($nestedValues as $nestedKey => $nestedValue) {
                $values[$this->buildKey($key, $nestedKey)] = $nestedValue;
            }
        }

        return $values;
    }
438856
public function data(string $key, array $data = null)
    {
        $this->tryLoad($key);

        if (!\array_key_exists($key, $this->data))
        {
            $this->data[$key] = $this->get($key, $data);
        }

        return $this->data[$key];
    }
24881
public static function createFromArray($key, array $data = [], ApiDefinition $apiDefinition = null)
    {
        $securityScheme = new static($key === 'null' ? null : $key);

        if (isset($data['description'])) {
            $securityScheme->setDescription($data['description']);
        }

        if (isset($data['type'])) {
            $securityScheme->setType($data['type']);
        }

        if (isset($data['describedBy'])) {
            $securityScheme->setDescribedBy(
                SecuritySchemeDescribedBy::createFromArray('describedBy', $data['describedBy'])
            );
        }

        if (isset($data['settings'])) {
            $securityScheme->setSettings($data['settings']);
        }

        return $securityScheme;
    }
356970
public function set($keys, $value) {
    if (is_string($keys)) $keys = explode('.',$keys);
    if (is_integer($keys)) $keys = array($keys);
    
    return $this->setDataWithKeys($keys, $value);
  }
132835
private function createManyToOneRelation(array &$data, $key)
    {
        $uid = isset($data[$key]) ? (int)$data[$key] : 0;

        $data[$key] = ($uid > 0)
            ? \Tx_Oelib_MapperRegistry::get($this->relations[$key])->find($uid)
            : null;
    }
976763
private function resetByPath(array $keys, array &$source)
    {
        if ($keys) {
            $key = array_shift($keys);

            if (!isset($source[$key])) {
                return;
            }

            $value = & $source[$key];
        } else {
            $value = & $source;
        }

        if (!$keys) {
            if (is_array($value)) {
                $input = & $value;
            } else {
                $input = [&$value];
            }

            array_walk_recursive(
                $input,
                function (&$val) {
                    if ($val instanceof IConfigValue) {
                        $val->reset();
                    } elseif ($val instanceof IConfig) {
                        $val->reset();
                    } else {
                        throw new UnexpectedValueException($this->translate(
                            'Config source is corrupted.'
                        ));
                    }
                }
            );
        } else {
            if ($value instanceof IConfig) {
                $value->reset(implode(self::PATH_SEPARATOR, $keys));
            } elseif (is_array($value)) {
                $this->resetByPath($keys, $value);
            } else {
                throw new InvalidArgumentException($this->translate(
                    "Trying to reset sub key for scalar value."
                ));
            }
        }
    }
440018
public static function array_delete(array &$data, $key){
		if(array_key_exists($key, $data)){
			$value = $data[$key];
			unset($data[$key]);
			return $value;
		}
	}
394056
public static function unset2D(array $data, $keys) {
	    foreach ((array)$keys as $key => $item) {
	        if (!is_array($item)) {
	            unset($data[$item]);
	            continue;
            }
            if (!isset($data[$key]) && !array_key_exists($key, $data)) {
	            continue;
            }
            if (!is_array($data[$key])) {
                unset($data[$key]);
                continue;
            }
            foreach ($item as $value) {
	            unset($data[$key][$value]);
            }
        }
        return $data;
    }
1219921
public function remove(array $keys) {
    $data =& $this->data;
    
    if ($keys === array() || $keys == NULL) {
      return $this;
    }
    
    $lastKey = array_pop($keys);
    foreach ($keys as $key) {
      if (!array_key_exists($key,$data)) {
        return $this;
      }
      $data =& $data[$key];
    }
    if (array_key_exists($lastKey, $data)) 
      unset($data[$lastKey]);
    
    return $this;
  }