Overview

Packages

  • Jyxo_Beholder
  • Jyxo_Charset
  • Jyxo_Color
  • Jyxo_Css
  • Jyxo_ErrorHandling
  • Jyxo_FirePhp
  • Jyxo_Gettext
    • Parser
  • Jyxo_Html
  • Jyxo_Input
    • Chain
    • Filter
    • Validator
  • Jyxo_Mail
    • Email
    • Parser
    • Sender
  • Jyxo_Rpc
    • Json
    • Xml
  • Jyxo_Shell
  • Jyxo_SpamFilter
  • Jyxo_Spl
  • Jyxo_String
  • Jyxo_Svn
  • Jyxo_Time
  • Jyxo_Timer
  • Jyxo_Webdav
  • Jyxo_XmlReader
  • PHP

Classes

  • Jyxo_Spl_ArrayUtil
  • Jyxo_Spl_CountableLimitIterator
  • Jyxo_Spl_FilterIterator
  • Jyxo_Spl_MapIterator
  • Jyxo_Spl_Object
  • Jyxo_Spl_ObjectCache

Interfaces

  • Jyxo_Spl_ArrayCopy
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class Jyxo_Spl_ObjectCache

Simple object cache so we don't have to create them or write caching over again.

Example:

$key = 'User_Friends/' . $user->username();
return Jyxo_Spl_ObjectCache::get($key) ?: Jyxo_Spl_ObjectCache::set($key, new User_Friends($this->context, $user));
Jyxo_Spl_ObjectCache implements IteratorAggregate
Category: Jyxo
Package: Jyxo_Spl
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Jakub Tománek
Located at Spl/ObjectCache.php
Methods summary
public static Jyxo_Spl_ObjectCache
# getInstance( )

Returns default storage for static access.

Returns default storage for static access.

Returns

Jyxo_Spl_ObjectCache
public static object
# get( string $key )

Returns an object from the default storage.

Returns an object from the default storage.

Parameters

$key
string
Object key

Returns

object
public Jyxo_Spl_ObjectCache
# clear( )

Clear the whole storage.

Clear the whole storage.

Returns

Jyxo_Spl_ObjectCache
public static object
# set( string $key, object $value )

Saves an object into the default storage.

Saves an object into the default storage.

Parameters

$key
string
Object key
$value
object
Object

Returns

object
saved object
public object
# __get( string $key )

Returns an object from an own storage.

Returns an object from an own storage.

Parameters

$key
string
Object key

Returns

object
public
# __set( string $key, object $value )

Saves an object into an own storage.

Saves an object into an own storage.

Parameters

$key
string
Object key
$value
object
Object
public boolean
# __isset( string $key )

Returns if there's an object with key $key in the storage.

Returns if there's an object with key $key in the storage.

Parameters

$key
string
Object key

Returns

boolean
public
# __unset( mixed $key )

Deletes an object with key $key from the storage.

Deletes an object with key $key from the storage.

Parameters

$key
mixed
Object key
public ArrayIterator
# getIterator( )

Returns an iterator.

Returns an iterator.

Returns

ArrayIterator

Implementation of

IteratorAggregate::getIterator
Jyxo PHP Library API documentation generated by ApiGen 2.3.0