API16

JSessionStorageXcache/ construct: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Constructor <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> ...
 
m clean up
Line 2: Line 2:
Constructor
Constructor


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JSessionStorageXcache/__construct|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JSessionStorageXcache/__construct}}
 
{{subst:Description:JSessionStorageXcache/__construct}}


===Syntax===
===Syntax===
Line 39: Line 37:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JSessionStorageXcache/__construct|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JSessionStorageXcache/__construct}}
</span>
{{SeeAlso:JSessionStorageXcache/__construct}}


===Examples===
===Examples===

Revision as of 14:25, 24 March 2017

Description

Constructor


{{subst:Description:JSessionStorageXcache/__construct}}

Syntax

__construct($options=array())
Parameter Name Default Value Description
$options array() $options optional parameters

Defined in

libraries/joomla/session/storage/xcache.php

Importing

jimport( 'joomla.session.storage.xcache' );

Source Body

function __construct($options = array())
{
        if (!$this->test()) {
                return JError::raiseError(404, "The xcache extension isn't available");
        }

        parent::__construct($options);
}


{{subst:SeeAlso:JSessionStorageXcache/__construct}}

Examples

<CodeExamplesForm />