PHP Класс Elgg\DeprecationWrapper

Note that the wrapper will not share the type of the wrapped object and will fail type hints, instanceof, etc. This was introduced for deprecating passing particular variabled to views automatically in elgg_view(). It also used to wrap the deprecated global $SESSION. It can be removed once that use is no longer required. Wraps: url string in ViewsService config object in ViewsService user object in ViewsService session object in session lib
Наследование: implements ArrayAccess
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$message string
$object object
$reporter callable
$string string
$version string

Открытые методы

Метод Описание
__call ( string $name, array $arguments ) : mixed Call a method on the object
__construct ( mixed $object, string $message, string $version, callable $reporter = 'elgg_deprecated_notice' ) Create the wrapper
__get ( string $name ) : mixed Get a property on the object
__set ( string $name, mixed $value ) : void Set a property on the object
__toString ( ) : string Get the object as string
offsetExists ( mixed $offset ) : boolean Array access interface
offsetGet ( mixed $key ) : mixed Array access interface
offsetSet ( mixed $key, mixed $value ) : void Array access interface
offsetUnset ( mixed $key ) : void Array access interface

Защищенные методы

Метод Описание
displayWarning ( ) : void Display a warning

Описание методов

__call() публичный Метод

Call a method on the object
public __call ( string $name, array $arguments ) : mixed
$name string Method name
$arguments array Method arguments
Результат mixed

__construct() публичный Метод

Create the wrapper
public __construct ( mixed $object, string $message, string $version, callable $reporter = 'elgg_deprecated_notice' )
$object mixed The object or string to wrap
$message string The deprecation message to display when used
$version string The Elgg version this was deprecated
$reporter callable function called to report deprecation

__get() публичный Метод

Get a property on the object
public __get ( string $name ) : mixed
$name string Property name
Результат mixed

__set() публичный Метод

Set a property on the object
public __set ( string $name, mixed $value ) : void
$name string Property name
$value mixed Property value
Результат void

__toString() публичный Метод

Get the object as string
public __toString ( ) : string
Результат string

displayWarning() защищенный Метод

Display a warning
protected displayWarning ( ) : void
Результат void

offsetExists() публичный Метод

Array access interface
См. также: ArrayAccess::offsetExists()
public offsetExists ( mixed $offset ) : boolean
$offset mixed Offset
Результат boolean

offsetGet() публичный Метод

Array access interface
См. также: ArrayAccess::offsetGet()
public offsetGet ( mixed $key ) : mixed
$key mixed Name
Результат mixed

offsetSet() публичный Метод

Array access interface
См. также: ArrayAccess::offsetSet()
public offsetSet ( mixed $key, mixed $value ) : void
$key mixed Name
$value mixed Value
Результат void

offsetUnset() публичный Метод

Array access interface
См. также: ArrayAccess::offsetUnset()
public offsetUnset ( mixed $key ) : void
$key mixed Name
Результат void

Описание свойств

$message защищенное свойство

protected string $message
Результат string

$object защищенное свойство

protected object $object
Результат object

$reporter защищенное свойство

protected callable $reporter
Результат callable

$string защищенное свойство

protected string $string
Результат string

$version защищенное свойство

protected string $version
Результат string