class JApplicationHelper


Located at : UKNOWVA_ROOT/libraries/joomla/application/helper.php

Application helper functions

Methods

static string
getComponentName(string $default = NULL)

Return the name of the request component [main component]

static mixed
getClientInfo(integer $id = null, boolean $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.

static boolean
addClientInfo(mixed $client)

Adds information for a client.

static string
getPath(string $varname, string $user_option = null)

Get a path

static array
parseXMLInstallFile(string $path)

Parse a XML install manifest file.

static array
parseXMLLangMetaFile(string $path)

Parse a XML language meta file.

Details

at line 38
static string getComponentName(string $default = NULL)

Return the name of the request component [main component]

Parameters

string $default The default option

Return Value

string Option (e.g. com_something)

at line 70
static mixed getClientInfo(integer $id = null, boolean $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.

This method will return a client information array if called with no arguments which can be used to add custom application information.

Parameters

integer $id A client identifier
boolean $byName If True, find the client by its name

Return Value

mixed Object describing the client or false if not known

at line 130
static boolean addClientInfo(mixed $client)

Adds information for a client.

Parameters

mixed $client A client identifier either an array or object

Return Value

boolean True if the information is added. False on error

at line 161
static string getPath(string $varname, string $user_option = null)

Get a path

Parameters

string $varname Identify location or type of xml
string $user_option Option (e.g. com_something) used to find path.

Return Value

string The requested path

at line 275
static array parseXMLInstallFile(string $path)

Parse a XML install manifest file.

XML Root tag should be 'install' except for languages which use meta file.

Parameters

string $path Full path to XML file.

Return Value

array XML metadata.

at line 327
static array parseXMLLangMetaFile(string $path)

Parse a XML language meta file.

XML Root tag for languages which is meta file.

Parameters

string $path Full path to XML file.

Return Value

array XML metadata.