Back to Joomla project (class list)

Class ApplicationHelper - list of methods

Application helper functions
Package: Joomla\CMS\Application
Copyright: (C) 2006 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Application/ApplicationHelper.php
Project: Joomla

Method Summary

public static string
(mixed $default = null)

Return the name of the request component [main component]
Parameters
  • string $default The default option
Returns
  • string Option (e.g. com_something)
Since
  • 1.6
Show source code of this method: getComponentName Source Code

public static string
(mixed $seed)

Provides a secure hash based on a seed
Parameters
  • string $seed Seed string.
Returns
  • string A secure hash
Since
  • 3.2
Show source code of this method: getHash Source Code

public static string
(mixed $string, mixed $language = '')

This method transliterates a string into a URL safe string or returns a URL safe UTF-8 string based on the global configuration
Parameters
  • string $string String to process
  • string $language Language to transliterate to if unicode slugs are disabled
Returns
  • string Processed string
Since
  • 3.2
Show source code of this method: stringURLSafe Source Code

public static \stdClass|array|void
(mixed $id = null, mixed $byName = false)

Gets information on a specific client id. This method will be useful in future versions when we start mapping applications in the database.
Parameters
  • int|string|null $id A client identifier
  • bool $byName If true, find the client by its name
Returns
  • \stdClass|array|void Object describing the client, array containing all the clients or void if $id not known
Since
  • 1.5
Show source code of this method: getClientInfo Source Code

public static bool
(mixed $client)

Adds information for a client.
Parameters
  • mixed $client A client identifier either an array or object
Returns
  • bool True if the information is added. False on error
Since
  • 1.6
Show source code of this method: addClientInfo Source Code

Properties Summary

protected static array
$_clients
Client information array
Since
  • 1.6

Tags Summary

Since
1.5