Determines the sortable key from the map

@param string $key
@return string
970467
protected function determineSortableKey($key)
    {
        // We need to allow source attributes here
        if (in_array($key, $this->sortableColumns) || $this->isTranslationAttribute($key))
        {
            return $key;
        }

        return $this->getDefaultSortableKey();
    }
1336384
public function getPathFromKey(string $key): string
    {
        return sprintf($this->dataPattern, $this->dataFolder, $key, substr($key, 0, 2));
    }
717547
public function isLast($key)
    {
        if (null === $this->lastKey) {
            end($this->hierarchy);
            $this->lastKey = key($this->hierarchy);
        }

        return $key === $this->lastKey;
    }
1248180
protected function extractKeyTag($key)
    {
        if (false !== $start = strpos($key, '{')) {
            if (false !== ($end = strpos($key, '}', $start)) && $end !== ++$start) {
                $key = substr($key, $start, $end - $start);
            }
        }

        return $key;
    }
1117841
public function getKeyPath($key)
    {

        $key = str_replace('.', '/', trim($key, '.'));

        return implode('', [$this->_path, "/$key", $this->_format->getExtension()]);
    }
525833
protected function splitKey(string $key)
    {
        if (!$this->multilevel) {
            return $key;
        }

        $slug_array = explode($this->separator, $key);

        if (count($slug_array) == 1) {
            return $key;
        }

        return $slug_array;
    }
661841
public static function normalizeKey($key)
    {
        $key = strtr(strtolower($key), '_', '-');
        if (strpos($key, 'http-') === 0) {
            $key = substr($key, 5);
        }

        return $key;
    }
95637
private function getPosition($key)
    {
        if ($this->index->containsKey($key)) {
            return $this->index->get($key);
        }

        return false;
    }
868197
protected function isMappedKey($key)
    {
        return substr($key, 0, strlen($this->getStartMapDelimiter())) == $this->getStartMapDelimiter()
            && substr($key, -strlen($this->getEndMapDelimiter())) == $this->getEndMapDelimiter();
    }
346559
public function getLastByKey($key)
    {
        if ($this->key == $key) return $this;

        return $this->children->getLastByKey($key);
    }
98876
public function getLastByKey($key)
    {
        if (!isset($this->keyList[$key])) {
            return null;
        }
        
        // returns the last entry
        return $this->keyList[$key]->top();
    }
380584
protected function removeTableFromKey(string $key): string
    {
        if (strpos($key, '.') === false) {
            return $key;
        }
        $keyParts = explode('.', $key);
        return array_pop($keyParts);
    }
835746
public function getOneByKey($key)
	{
		// Note: this switch exists like this because PHP does not have "traditional method overloading".
		switch(gettype($key))
		{
			// Use EntityIdentifier to retrieve.
			case 'object':
				return $this->getOneByIdentifier($key);
			break;

			// Use a composite key to retrieve.
			case 'array':
				return $this->getOneByCompoundKey($key);
			break;

			// Use an actual Identifier string to retrieve.
			case 'string':
				return $this->getOneByUuid($key);
			break;

			// Use Entity to retrieve.
			default:
				return new Payload($key, 'invalid_key_type');
		}
	}
706474
protected function getPath($key)
    {
        $parsed = $this->parseKey($key);

        array_shift($parsed);

        list ($dir, $file) = $parsed;
        return sprintf('%s/%s/%s', $this->path, $dir, $file);
    }
681891
public function normalizeOptionName($key) {
    if ($key === null) { return null; }
    $map = $this->getNormAlizedOptiOnnameMap();
    return isset($map[$key]) ? $map[$key] : null;
  }
1134291
public function hdel($key) {

        $set = $this->getKey($collection, $key, []);

        if (!count($set)) return 0;

        $fields  = func_get_args();
        $removed = 0;

        for ($i=1; $i<count($fields); $i++){

            $field = $fields[$i];

            if (isset($set[$field])){
                unset($set[$field]);
                $removed++;
            }
        }

        $this->setKey($collection, $key, $set);

        return $removed;
    }
185912
function findKey( $key )
    {
        $num = $this->keyPick( $key );
        if ( $num >=0 and $num <= count( $this->Handlers ) )
        {
            $handler = $this->Handlers[$num];
            return $handler->findKey( $key );
        }
        $retValue = null;
        return $retValue;
    }