API16

JSessionStorageMemcache/test: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Test to see if the SessionHandler is available. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JSessionStorageMemcache/test|Edit D...
 
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
Test to see if the SessionHandler is available.
Test to see if the SessionHandler is available.


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


{{Description:JSessionStorageMemcache/test}}
 
 


===Syntax===
===Syntax===
Line 28: Line 26:
</source>
</source>


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


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=test
  category=test
  category=JSessionStorageMemcache
  category=JSessionStorageMemcache
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 02:05, 25 March 2017

Description

Test to see if the SessionHandler is available.



Syntax

test()


Returns

boolean True on success, false otherwise.

Defined in

libraries/joomla/session/storage/memcache.php

Importing

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

Source Body

function test()
{
        return (extension_loaded('memcache') && class_exists('Memcache'));
}



Examples

Code Examples