Display a wildcard in the back end
@return string
421310
public function generate()
	{
		if (TL_MODE == 'BE')
		{
			$objTemplate = new \BackendTemplate('be_wildcard');

			$objTemplate->wildcard = '### DOCUMENT MANAGEMENT SYSTEM - LISTING ###';
			$objTemplate->title = $this->headline;
			$objTemplate->id = $this->id;
			$objTemplate->link = $this->name;
			$objTemplate->href = 'contao/main.php?do=themes&amp;table=tl_module&amp;act=edit&amp;id=' . $this->id;

			return $objTemplate->parse();
		}

		return parent::generate();
	}
568430
protected function metaString(): string
    {
        if (!$this->meta) {
            return '';
        }

        return \join(' ', \array_map(function (string $key, $value): string {
            return $this->slugify($key).'="'.$this->escape->attr($value).'"';
        }, \array_keys($this->meta), \array_values($this->meta)));
    }
406778
public static function ListAll()
    {
        $data = [];
        //
        $folders = glob(Application::$root.'resources/translator/*');
        //
        foreach ($folders as $key => $value) {
            $folder = \Strings::splite($value, 'resources/translator/');
            $folder = $folder[1];
            //
            $data[] = '>'.$folder;
            //
            foreach (glob(Application::$root.'resources/translator/'.$folder.'/*.php') as $key2 => $value2) {
                $file = \Strings::splite($value2, "app/lang/$folder/");
                $file = $file[1];
                //
                $data[] = '   '.$file;
            }
        }
        //
        return $data;
    }
653920
private static function getReplacements()
    {
        if (null !== self::$replacements) {
            return self::$replacements;
        }

        self::$replacements = array(
            // Trailing single-wildcard with separator prefix
            '/\\\\\.\\\\\*$/'     => '(?:\.\w+)?',
            // Single-wildcard with separator prefix
            '/\\\\\.\\\\\*/'      => '(?:\.\w+)',
            // Single-wildcard without separator prefix
            '/(?<!\\\\\.)\\\\\*/' => '(?:\w+)',
        );

        // preg_quote() escapes `#` in PHP 7.3+
        if (PHP_VERSION_ID >= 70300) {
            self::$replacements += array(
                // Multi-wildcard with separator prefix
                '/\\\\\.\\\\\#/'      => '(?:\.\w+)*',
                // Multi-wildcard without separator prefix
                '/(?<!\\\\\.)\\\\\#/' => '(?:|\w+(?:\.\w+)*)',
            );
        } else {
            self::$replacements += array(
                // Multi-wildcard with separator prefix
                '/\\\\\.#/'      => '(?:\.\w+)*',
                // Multi-wildcard without separator prefix
                '/(?<!\\\\\.)#/' => '(?:|\w+(?:\.\w+)*)',
            );
        }

        return self::$replacements;
    }
1134093
public function getFullUrl(): string
    {
        $queryString = $this->getQueryString();

        return sprintf(
            '%s%s%s',
            static::getBaseUri(),
            $this->getEndpoint(),
            ($queryString) ? '/?'.$queryString : ''
        );
    }
1140622
protected static function matchRegexpCode( $wildcard )
    {
        $matchWilcard = $wildcard['source_url'];
        $matchWilcardList = explode( "*", $matchWilcard );
        $regexpList = array();
        foreach ( $matchWilcardList as $matchWilcardItem )
        {
            $regexpList[] = preg_quote( $matchWilcardItem, '#' );
        }
        $matchRegexp = implode( '(.*)', $regexpList );

        return "#^$matchRegexp#i";
    }
482735
public function getFileDisplayName()
    {
        $base = str_replace(DIRECTORY_SEPARATOR, '/', DIR_BASE);
        if (strpos($this->filename, $base) === 0) {
            $path = substr($this->filename, strlen($base) + 1);
        } else {
            $path = $this->filename;
        }

        return str_replace('/', DIRECTORY_SEPARATOR, $path);
    }
477711
public function getFullNativeName(): string
    {
        if (!$this->nativeName) {
            $this->nativeName = $this->getNames()['nativeName'];
        }

        return $this->nativeName;
    }
1120208
public function parseActionName() {
		$uri = trim(get_input('__elgg_uri', ''), '/');
		$segments = explode('/', $uri);
		$handler = array_shift($segments);
		if ($handler == 'action') {
			return implode('/', $segments);
		}
		return $uri;
	}
120108
public function actionName() {
        $request = $this->stack->getCurrentRequest();
        if ($request instanceof Request) {
            $pattern = "#::([a-zA-Z]*)Action#";
            $matches = array();
            preg_match($pattern, $request->get('_controller'), $matches);
            if (isset($matches[1])) {
                return strtolower($matches[1]);
            }

            return '';
        }

        return '';
    }
209834
public function render(): string
    {
        $output = '';

        if ($this->token === null) {
            $output .= $this->counter . ". ";
        } else {
            $output .= $this->token;
        }

        if ($this->hasChildren() === true) {
            foreach ($this->children() as $child) {
                $output .= $child->render();
            }
        }

        $output .= $this->escape($this->insert);

        return $output;
    }
737097
public function getHtml(): string
  {
    $ret = $this->prefix;
    foreach ($this->controls as $control)
    {
      $ret .= $control->getHtml();
    }
    $ret .= $this->postfix;

    return $ret;
  }
1311288
public function getGroup(): string
    {
        if ($this->caching == false) {
            $groupId = $this->getGroupId();

            if ($groupId == -2) {
                return "";
            }

            $group = posix_getgrgid($groupId);

            return $group["name"];
        }

        if ($this->group == null) {
            $groupId = $this->getOwnerId();

            if ($groupId == -2) {
                $this->group = "";
            }

            $group = posix_getpwuid($groupId);

            $this->group = $group["name"];
        }

        return $this->group;
    }
212679
private function searchWildcards($mime)
    {
        foreach ($this->elementWildcards as $wildcard => $class) {
            $mimePrefix = current(explode('/', $mime));
            if (strpos($wildcard, $mimePrefix) !== false) {
                return $class;
            }
        }

        return false;
    }
1037081
public function listDb($wildcard = null)
    {

        $query = DB::table($this->table);
        if (!empty($wildcard)) {
            $query = $query->where('key', 'LIKE', $wildcard . '%');
        }

        return $query;

    }
292181
protected function BackLink()
    {
        $selected = $this->SelectedTreeID();
        switch ($this->Location()) {
            case Enums\ContentLocation::Page():
                return $this->PageBackLink($selected);

            case Enums\ContentLocation::Layout():
                return $this->LayoutBackLink($selected);

            case Enums\ContentLocation::Container():
                return $this->ContainerBackLink($selected);
        }
    }
1104051
public function getQuery(): string
    {
        $sql = $this->getSql();

        $sql = str_replace(['%', '?'], ['%%', '"%s"'], $sql);

        // replace mask by data
        return vsprintf($sql, $this->getParams());
    }