Elgg  Version 1.9
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Elgg_DeprecationWrapper Class Reference
Inheritance diagram for Elgg_DeprecationWrapper:

Public Member Functions

 __construct ($object, $message, $version, $reporter= 'elgg_deprecated_notice')
 Create the wrapper. More...
 
 __get ($name)
 Get a property on the object. More...
 
 __set ($name, $value)
 Set a property on the object. More...
 
 __call ($name, $arguments)
 Call a method on the object. More...
 
 __toString ()
 Get the object as string. More...
 
 offsetSet ($key, $value)
 Array access interface. More...
 
 offsetGet ($key)
 Array access interface. More...
 
 offsetUnset ($key)
 Array access interface. More...
 
 offsetExists ($offset)
 Array access interface. More...
 

Protected Member Functions

 displayWarning ()
 Display a warning. More...
 

Protected Attributes

 $object
 
 $string
 
 $message
 
 $version
 
 $reporter
 

Detailed Description

Definition at line 23 of file DeprecationWrapper.php.

Constructor & Destructor Documentation

Elgg_DeprecationWrapper::__construct (   $object,
  $message,
  $version,
  $reporter = 'elgg_deprecated_notice' 
)

Create the wrapper.

Parameters
mixed$objectThe object or string to wrap
string$messageThe deprecation message to display when used
float$versionThe Elgg version this was deprecated
callable$reporterfunction called to report deprecation

Definition at line 47 of file DeprecationWrapper.php.

Member Function Documentation

Elgg_DeprecationWrapper::__call (   $name,
  $arguments 
)

Call a method on the object.

Parameters
string$nameMethod name
array$argumentsMethod arguments
Returns
mixed

Definition at line 88 of file DeprecationWrapper.php.

Elgg_DeprecationWrapper::__get (   $name)

Get a property on the object.

Parameters
string$nameProperty name
Returns
mixed

Definition at line 64 of file DeprecationWrapper.php.

Elgg_DeprecationWrapper::__set (   $name,
  $value 
)

Set a property on the object.

Parameters
string$nameProperty name
mixed$valueProperty value
Returns
void

Definition at line 76 of file DeprecationWrapper.php.

Elgg_DeprecationWrapper::__toString ( )

Get the object as string.

Returns
string

Definition at line 98 of file DeprecationWrapper.php.

Elgg_DeprecationWrapper::displayWarning ( )
protected

Display a warning.

Returns
void

Definition at line 112 of file DeprecationWrapper.php.

Elgg_DeprecationWrapper::offsetExists (   $offset)

Array access interface.

See also
ArrayAccess::offsetExists()
Parameters
mixed$offsetOffset
Returns
bool

Definition at line 189 of file DeprecationWrapper.php.

Elgg_DeprecationWrapper::offsetGet (   $key)

Array access interface.

See also
ArrayAccess::offsetGet()
Parameters
mixed$keyName
Returns
mixed

Definition at line 153 of file DeprecationWrapper.php.

Elgg_DeprecationWrapper::offsetSet (   $key,
  $value 
)

Array access interface.

See also
ArrayAccess::offsetSet()
Parameters
mixed$keyName
mixed$valueValue
Returns
void

Definition at line 130 of file DeprecationWrapper.php.

Elgg_DeprecationWrapper::offsetUnset (   $key)

Array access interface.

See also
ArrayAccess::offsetUnset()
Parameters
mixed$keyName
Returns
void

Definition at line 171 of file DeprecationWrapper.php.

Member Data Documentation

Elgg_DeprecationWrapper::$message
protected

Definition at line 31 of file DeprecationWrapper.php.

Elgg_DeprecationWrapper::$object
protected

Definition at line 25 of file DeprecationWrapper.php.

Elgg_DeprecationWrapper::$reporter
protected

Definition at line 37 of file DeprecationWrapper.php.

Elgg_DeprecationWrapper::$string
protected

Definition at line 28 of file DeprecationWrapper.php.

Elgg_DeprecationWrapper::$version
protected

Definition at line 34 of file DeprecationWrapper.php.


The documentation for this class was generated from the following file: