PHP Класс IMP_Flag_Base, horde

Автор: Michael Slusarz ([email protected])
Наследование: implements Serializable
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_bgcolor string The background color.
$_canset boolean Is this flag settable by the user?
$_css string The CSS class.
$_cssIcon string The CSS class for the icon.
$_id string Unique ID.

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

Метод Описание
__get ( $name )
__set ( string $name, string $value ) Set properties.
__toString ( ) : string String representation of the object.
changed ( array $obs, boolean $add ) : mixed Given a list of flag objects, determines if this flag's status has changed.
getLabel ( boolean $set = true ) : string Return the flag label.
serialize ( )
unserialize ( $data )

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

Метод Описание
_getLabel ( ) : string Return the flag label.

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

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

public __get ( $name )

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

Set properties.
public __set ( string $name, string $value )
$name string Available properties: - bgcolor: (string) The background color.
$value string Property value.

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

String representation of the object.
public __toString ( ) : string
Результат string String representation (Flag ID).

_getLabel() абстрактный защищенный Метод

Necessary evil as gettext strings can not be set directly to object properties.
abstract protected _getLabel ( ) : string
Результат string The label.

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

Given a list of flag objects, determines if this flag's status has changed.
public changed ( array $obs, boolean $add ) : mixed
$obs array A list of IMP_Flag_Base objects.
$add boolean True if these flags were added, false if they were removed.
Результат mixed Null if no change, true if flag is added, false if flag is removed.

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

Return the flag label.
public getLabel ( boolean $set = true ) : string
$set boolean Return label for setting the flag?
Результат string The label.

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

public serialize ( )

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

public unserialize ( $data )

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

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

The background color.
protected string $_bgcolor
Результат string

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

Is this flag settable by the user?
protected bool $_canset
Результат boolean

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

The CSS class.
protected string $_css
Результат string

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

The CSS class for the icon.
protected string $_cssIcon
Результат string

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

Unique ID.
protected string $_id
Результат string