@param $data
@param $i

@return string
325616
private function getImageView($data, $i): string
    {
        $count = $this->data_count - 1;
        $hash = md5($data['image']);

        ob_start();

        ?>
    <table style="float:left;text-align:center;margin:0 20px 20px 0;border:1px solid #ccc; font-size: 18px;">
        <tr>
            <td style="vertical-align:top">
                <div style="position:relative;height:100%">
                    <a href="<?= $data['image'] . '" target="_blank' ?>">
                        <img src="<?= $data['image'] . '&resizefit=' . $this->image_width . 'x' . $this->image_height . '&key=' . Configuration::getInstance()->get('cms')['unique_key'] ?>">
                        </a>
                    <div style="position:absolute;bottom:-15px;right:10px;padding:0 5px;background:#fff;">
                        <label>
                            <div style="float:right"><?= __('Active') ?></div>
                            <input
                                type="checkbox"
                                id="gallery_active_<?= $hash ?>"
                                name="active"
                                value="1"<?= $data['active'] ? ' checked="checked"' : '' ?>
                                onchange="sendActive('gallery_active_<?= $hash ?>','?p=<?= P ?>&do=<?= $this->link_active ?>&id=<?= $data['id'] ?>')"
                            >
                        </label>
                    </div>
                    <table style="position:absolute;bottom:-14px;left:10px;width:80px;padding:0 5px;background:#fff;">
                        <tr>
                            <td><?= ($i ? '<a href="?p=' . P . '&do=' . $this->link_order . '&id=' . $data['id'] . '&direct=up"><</a>' : '') ?></td>
                            <td align="center" width="99%">
                                <a
                                   href="?p=<?= P ?>&do=<?= $this->link_delete ?>&id=<?= $data['id'] ?>"
                                   onclick="return confirm('<?= __('Are you sure?') ?>')"
                                >x</a>
                            </td>
                            <td><?= ($count !== $i ? '<a href="?p=' . P . '&do=' . $this->link_order . '&id=' . $data['id'] . '&direct=down">></a>' : '') ?></td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        </table>
        <?php

        return ob_get_clean();
    }
749128
public function appendIni($data)
    {
        $array = parse_ini_string($data, $this->_processIniSection, INI_SCANNER_RAW);

        if ($array === false) {
            $this->_hasErrors = true;
            $this->_errorsList[] = 'parse_ini_string';
            return $this;
        }

        $this->appendArray($array);
        return $this;
    }
1015790
private function routeRegexpLocales(array $data = null) : string
    {
        if (!is_null($data)) {
            $dest = self::locale();
        } else {
            $dest = '(?:' . implode('|', self::translator()->getLocales()) . ')';
        }

        return $dest;
    }
578095
public static function implode_pk($data)
	{
		if (count(static::$_primary_key) == 1)
		{
			$p = reset(static::$_primary_key);
			return (is_object($data)
				? strval($data->{$p})
				: (isset($data[$p])
					? strval($data[$p])
					: null));
		}

		$pk = '';
		foreach (static::$_primary_key as $p)
		{
			if (is_null((is_object($data) ? $data->{$p} : (isset($data[$p]) ? $data[$p] : null))))
			{
				return null;
			}
			$pk .= '['.(is_object($data) ? $data->{$p} : $data[$p]).']';
		}

		return $pk;
	}
724311
public static function parseLabels(&$data, $orig = null)
    {
        $str = '';
        while (strlen($data) > 0)
        {
            $l = ord($data[0]);

            if ($l >= 192) {
                $pos  = static::bytes2int(chr($l - 192) . static::binarySubstr($data, 1, 1));
                $data = static::binarySubstr($data, 2);
                $ref  = static::binarySubstr($orig, $pos);

                return $str . static::parseLabels($ref);
            }

            $p = substr($data, 1, $l);
            $str .= $p . (($l !== 0) ? '.' : '');
            $data = substr($data, $l + 1);
            if ($l === 0) {
                break;
            }
        }
        return $str;
    }
841863
function name_data($data){
		if ($data == "gr_id") return $this->config->id["name"];
		$parts=explode("c",$data);
		if ($parts[0]=="" && ((string)intval($parts[1]))==$parts[1])
			if (sizeof($this->config->text)>intval($parts[1]))
				return $this->config->text[intval($parts[1])]["name"];
		return $data;
	}
1019799
protected function extractSizeInfo($i)
	{
		// Extract size info from SOF marker
		list(, $unpacked) = unpack("H*", substr($this->data, $i - 1 + self::LONG_SIZE, self::LONG_SIZE));

		// Get width and height from unpacked size info
		$size = array(
			'width'		=> hexdec(substr($unpacked, 4, 4)),
			'height'	=> hexdec(substr($unpacked, 0, 4)),
		);

		return $size;
	}
415072
private function parseIniString($data)
    {
        $config = $this->arr();
        $data = parse_ini_string($data, true);
        foreach ($data as $section => $value) {
            $config = $config->mergeRecursive($this->processValue($section, $value));
        }

        return $config;
    }
1232918
public String getName(int i) {
        if (i < 0 || i >= names.size()) {
            return null;
        }
        return names.get(i);
    }
80647
final private static function encodeString(string $data): string
    {
        $buf = '';
        self::encodeUnsigned($buf, strlen($data));
        return $buf . $data;
    }
452752
protected function extractMarkerLength($i)
	{
		// Extract length only
		list(, $unpacked) = unpack("H*", substr($this->data, $i, self::LONG_SIZE));

		// Get width and height from unpacked size info
		$markerLength = hexdec(substr($unpacked, 0, 4));

		return $markerLength;
	}
733586
protected function getData($data)
    {
        $method = "load" . strtoupper($this->mode);

        libxml_use_internal_errors(true);
        $this->dom->$method($data);
        $this->errors = libxml_get_errors();
        libxml_clear_errors();

        return $data;
    }
54934
public static function getSignContent($data): string
    {
        $buff = '';

        foreach ($data as $k => $v) {
            $buff .= ($k != 'sign' && $v != '' && !is_array($v)) ? $k.'='.$v.'&' : '';
        }

        Log::debug('Wechat Generate Sign Content Before Trim', [$data, $buff]);

        return trim($buff, '&');
    }
665185
public function extractId(&$data)
    {
        $id = NULL;
        if (isset($data[$this->idField])) {
            $id = $data[$this->idField];
            unset($data[$this->idField]);
        }
        return $id;
    }
593756
public static function charAt(string $str, int $i): string
    {
        return (string)BaseStringy::create($str)->at($i);
    }
1343623
public function generate(array $data): string
    {
        /** @var RecordFinder $recordFinder */
        $recordFinder = GeneralUtility::makeInstance(RecordFinder::class);
        $beGroupUids = $recordFinder->findUidsOfDemoBeGroups();
        $beUserUids = $recordFinder->findUidsOfDemoBeUsers();
        $result = [];
        foreach ($beGroupUids as $uid) {
            $result[] = 'be_groups_' . $uid;
        }
        foreach ($beUserUids as $uid) {
            $result[] = 'be_users_' . $uid;
        }
        return implode(',', $result);
    }
431048
public function &getAt($i, $default=null)
    {
        $field = $this->getNameAt($i);
        if($this->exists($field))
        {
            return $this->get($field);
        }
        return $default;
    }