Actions

API15

Difference between revisions of "JApplicationHelper/addClientInfo"

From Joomla! Documentation

< API15:JApplicationHelper
(New page: ===Description=== Adds information for a client. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<n...)
 
m (removing red link to edit, no existant pages)
 
Line 3: Line 3:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JApplicationHelper/addClientInfo|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JApplicationHelper/addClientInfo}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 55: Line 55:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JApplicationHelper/addClientInfo|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JApplicationHelper/addClientInfo}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 70: Line 70:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API15]]

Latest revision as of 08:42, 12 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Adds information for a client.

[<! removed edit link to red link >]

<! 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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />