API16:JApplicationHelper/addClientInfo
From Joomla! Documentation
Description
Adds information for a client.
<! removed transcluded page call, red link never existed >
Syntax
static addClientInfo($client)
Parameter Name | Default Value | Description |
---|---|---|
$client | A client identifier either an array or object |
Returns
boolean True if the information is added. False on error
Defined in
libraries/joomla/application/helper.php
Importing
jimport( 'joomla.application.helper' );
Source Body
public static function addClientInfo($client)
{
if (is_array($client)) {
$client = (object) $client;
}
if (!is_object($client)) {
return false;
}
$info = &self::getClientInfo();
if (!isset($client->id)) {
$client->id = count($info);
}
$info[$client->id] = clone $client;
return true;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples