获取指定字段的外键信息（哪个表，哪个字段）

@param string $name 表名
@return boolean|array|string
512128
public function getForeignKey(string $name = null)
    {
        // 构造 查询语句
        $sql = $this->db->getCreate($name ? $name : $this->tableName);
        $result = $this->query($sql);

        // 分析结果
        $statement = $result[0]['Create Table'];
        $matched = preg_match_all('/CONSTRAINT\s\S*\sFOREIGN\sKEY\s\(`([^`]*)`\) REFERENCES `([^`]*)` \(`([^`]*)`\)/i', $statement, $matches, PREG_SET_ORDER);
        if (!$matched) {
            return false;
        }

        // 如果有多个
        $fks = [];
        foreach ($matches as $m) {
            $fks[$m[1]] = [
                'table' => $m[2],
                'field' => $m[3]
            ];
        }
        return $fks;
    }
569044
public function get($name) {
		return isset($_SESSION[$this->prefix . $name]) ? $_SESSION[$this->prefix . $name] : false;

	}
616617
private function get(string $name){
		$method = 'magic_get_'.$name;

		return \method_exists($this, $method) ? $this->$method() : null;
	}
814496
public function getParameter($name)
    {
        $name = (string)$name;
        return array_key_exists($name, $this->_params) ? $this->_params[$name] : null;
    }
452084
protected function getJSONArg ($name)
	{
		return isset ($this->request['json']->$name)? $this->request['json']->$name : FALSE;
	}
434152
public function __isset($name)
    {
        $getter = 'get' . $name;
        if (method_exists($this, $getter)) {
            return $this->{$getter}() !== null;
        }

        if (is_array($this->entity)) {
            return isset($this->entity[$name]);
        }

        return isset($this->entity->{$name});
    }
25669
public function get($name)
    {
        // For fields that are stored as arrays, like 'video'
        if (strpos($name, '.') > 0) {
            list($name, $attr) = explode('.', $name);
            if (!empty($attr) && isset($this->values[$name][$attr])) {
                return $this->values[$name][$attr];
            }
        }

        if (isset($this->values[$name])) {
            return $this->values[$name];
        }

        return false;
    }
1144886
public function getServerParam($name)
    {
        $name = strtoupper($name);

        return isset($this->server[$name]) ? $this->server[$name] : false;
    }
962270
public function get($name) {
        N('cache_read',1);
        $name   =   $this->options['prefix'].$name;
        if (xcache_isset($name)) {
            return xcache_get($name);
        }
        return false;
    }
880120
public function getQueryParameter($name)
    {
        return isset($this->query[$name]) ? $this->query[$name] : null;
    }
295687
public static function get($name)
    {
        if (!self::isExist($name)) return false;
        $value = $_COOKIE[Config::get('cookie_prefix') . $name];
        return Encry::decrypt($value);
    }
333
public function getInfo($name)
    {
        $keys = explode('.', $name);
        if (is_array($keys)) {
            $file = array_shift($keys);
            $key = implode('.', $keys);
        } else {
            $file = $name;
            $key = null;
        }

        return ['file' => $file, 'key' => $key];
    }
381199
public function get(string $name)
    {
        return isset(self::$services[$name]) ? self::$services[$name] : null;
    }
714027
public static function get($name)
    {
        if (isset($_REQUEST[$name])) {
            return $_REQUEST[$name];
        }

        if (isset($_GET[$name])) {
            return $_GET[$name];
        }

        return;
    }
780578
public function get($name = 'HTTP_HOST')
    {
        $name = isset($this->references[$name]) ? $this->references[$name]: $this->resolveCase($name);

        return $this->has($name) ? $_SERVER[$name] : false;
    }
976699
public function get($name)
    {
        if (is_null($name) || empty($name))
        {
            return null;
        }

        $loweredKey = strtolower($name);

        if (array_key_exists($loweredKey, $this->keyMap) === false)
        {
            return null;
        }

        $originalKey = $this->keyMap[$loweredKey];

        return $this->headerMap[$originalKey];
    }
973871
public function getOption($name){
        return (isset($this->configOptions->{$name})) ? $this->configOptions->{$name} : false;    
    }