Returns maximum seo/dynamic url length

@return int
169767
protected function _getMaxUrlLength()
    {
        if ($this->_iMaxUrlLength === null) {
            // max length <= 2048 / custom
            $this->_iMaxUrlLength = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam("iMaxSeoUrlLength");
            if (!$this->_iMaxUrlLength) {
                $this->_iMaxUrlLength = 2048;
            }
        }

        return $this->_iMaxUrlLength;
    }
1266204
public function getPerPageLimit()
    {
        ob_start();
        $selection = explode(',',$this->perPageSelection);

        ?>
        <div class="field filter-option-lg form-group">
            <label class="field-label" for="#attention-of-search">Per page</label>
            <select name="per_page" class="per-page form-control" data-width="80px" >
                <?php foreach($selection as $val):
                    $selected_attr = ($val == $this->perPage) ? "selected=\"selected\"" : null; ?>
                    <option <?php echo $selected_attr; ?> class="<?php echo $val; ?>"><?php echo $val; ?></option>
                <?php endforeach; ?>
            </select>
        </div>
        <?php
        return ob_get_clean();
    }
394866
public static function getMaxUploadSize()
    {
        $uploadMaxFileSize = self::sizeInBytes(ini_get('upload_max_filesize'));
        $postMaxSize = self::sizeInBytes(ini_get('post_max_size'));

        $limits[] = $uploadMaxFileSize;

        if ($postMaxSize > 0) {
            $limits[] = $postMaxSize;
        }

        return (int) min($limits);
    }
1015961
protected function getPostMaxSize()
    {
        $postMaxSize = ini_get('post_max_size');

        switch (substr($postMaxSize, -1)) {
            case 'M':
            case 'm':
                return (int) $postMaxSize * 1048576;
            case 'K':
            case 'k':
                return (int) $postMaxSize * 1024;
            case 'G':
            case 'g':
                return (int) $postMaxSize * 1073741824;
        }

        return (int) $postMaxSize;
    }
278284
public function getLimit($max = null)
    {
        $limit = $this->getPage('limit') ?: $this->getPage('size') ?: null;

        if ($limit && $max) {
            $limit = min($max, $limit);
        }

        return $limit;
    }
972279
public function getLength()
	{
		if ($this->length == null) {
			$this->requestHead();
		}
		if ($this->length == null) {
			$this->requestBody();
		}
		return $this->length;
	}
499514
protected function getLength()
    {
        if (!$this->length) {
            $this->length = $this->util->width();
        }

        return $this->length;
    }
1264281
public function width(): int
    {
        $lines = explode("\n", $this->value());
        $width = [];

        foreach ($lines as $line) {
            $raw = strip_tags($line);
            $width[] = strlen(trim($raw));
        }

        return max($width);
    }
451397
protected function _getMax()
	{
		$max = 0;
		if (!empty($this->_tagsArray)) {
			$p_size = 0;
			foreach ($this->_tagsArray as $cKey => $cVal) {
				$c_size = $cVal['size'];
				if ($c_size > $p_size) {
					$max = $c_size;
					$p_size = $c_size;
				}
			}
		}
		return $max;
	}
802953
public function getLength()
    {
        if ($this->getPagination() == self::BOOLEAN_TRUE) {
            $properties = $this->getProperties();
            return (array_key_exists('length', $properties) ? $properties['length'] : false);
        }
        return false;
    }
1000060
public function getLastPageParams()
    {
        $limit = $this->limit <= 0 ? $this->count : $this->limit;
        $last_page = intdiv(intval($this->count), intval($limit));
        $last_url = $this->offset_key
            . ($last_page * $limit)
            . $this->limit_key
            . $limit;

        return $last_url;
    }
951564
protected function getPostMaxSize(): int
    {
        $postMaxSize = strtoupper(trim(ini_get('post_max_size')));
        // only string
        $unit = preg_replace('/[^a-zA-Z]/', '', $postMaxSize);
        // only number (allow decimal point)
        $byte = (int) preg_replace('/\D\.\D/', '', $postMaxSize);

        switch ($unit) {
            case 'K':
                return $byte * 1024;
            case 'M':
                return $byte * 1024 * 1024;
            case 'G':
                return $byte * 1024 * 1024 * 1024;
            default:
                return $byte;
        }
    }
779165
public function urlExtension()
    {
        if ($this->home()) {
            return '';
        }

        // if not set in the page get the value from system config
        if (null === $this->url_extension) {
            $this->url_extension = Grav::instance()['config']->get('system.pages.append_url_extension', '');
        }

        return $this->url_extension;
    }
804597
public function getFullUrl()
    {
        /** @var Uri $uri */
        $uri = $this->getUri();

        return rtrim($uri->getBaseUrl(), '/') . '/' . ltrim($uri->getPath(), '/');
    }
1012293
public function get_maxwidth() {
        $param = optional_param('wikimedia_maxwidth', 0, PARAM_INT);
        $pref = get_user_preferences('repository_wikimedia_maxwidth', WIKIMEDIA_IMAGE_SIDE_LENGTH);
        if ($param > 0 && $param != $pref) {
            $pref = $param;
            set_user_preference('repository_wikimedia_maxwidth', $pref);
        }
        return $pref;
    }
315055
public function getFullWidth() : int {
        $first = $this->getFullStart();
        $last = $this->getEndPosition();

        return $last - $first;
    }
1226810
public function getMaxFileSize(): int
    {
        if ($this->maxFileSize === null) {
            $value = ini_get("upload_max_filesize");
            $units = "BKMGT";
            $unit = preg_replace("/[^$units]/i", "", $value);
            $value = floatval($value);
            if ($unit) {
                $value *= pow(1024, stripos($units, $unit[0]));
            }
            $this->maxFileSize = (int) $value;
        }
        return $this->maxFileSize;
    }