Actions

API17

Difference between revisions of "JCacheControllerCallback::get"

From Joomla! Documentation

(Layout updates)
m (See also: moving preparation)
 
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JCacheControllerCallback::get|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JCacheControllerCallback::get|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JCacheControllerCallback::get ($callback, $args=array(), $id=false, $wrkarounds=false, $woptions=array())
+
public function get (
 +
        $callback
 +
        $args=array
 +
        $id=false
 +
        $wrkarounds=false
 +
        $woptions=array
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 47: Line 50:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' mixed Result of the callback
mixed Result of the callback
+
* '''Defined''' on line 59 of libraries/joomla/cache/controller/callback.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/cache/controller/callback.php (line 59)
+
* see source code in [[jplatform:cache/controller/callback.php#cl-59|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JCacheControllerCallback::get source code''' on [[jplatform:cache/controller/callback.php#cl-51|BitBucket]]
 +
* {{JVer|11.1}} Class [[API17:JCacheControllerCallback|JCacheControllerCallback]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Cache|Cache]]
 +
* [[API17:JCacheControllerCallback::get|Other versions of JCacheControllerCallback::get]]
 +
{{SeeAlso:JCacheControllerCallback::get}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JCacheControllerCallback::get|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JCacheControllerCallback::get|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JCacheControllerCallback/11.1|JCacheControllerCallback]]
+
===User contributed notes===
* [[JCacheControllerCallback::get|Other versions of this method]]
+
{{SeeAlso:JCacheControllerCallback::get}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 68: Line 70:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JCacheControllerCallback]][[Category:JCacheControllerCallback::get]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 19:50, 11 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.

Joomla 11.1 JCacheControllerCallback::get

Description

Executes a cacheable callback if not found in cache else returns cached output and result.

Description:JCacheControllerCallback::get [Edit Descripton]

public function get (
        $callback
        $args=array
        $id=false
        $wrkarounds=false
        $woptions=array
)
Parameter Type Default Description
$callback mixed Callback or string shorthand for a callback
$args array array() Callback arguments
$id string false Cache id
$wrkarounds boolean false Perform workarounds on data?
$woptions array array() Workaround options
  • Returns mixed Result of the callback
  • Defined on line 59 of libraries/joomla/cache/controller/callback.php
  • Since Joomla 11.1

See also

SeeAlso:JCacheControllerCallback::get [Edit See Also]

User contributed notes

<CodeExamplesForm />