PHP Класс Kronolith_Attendee, horde

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

Открытые свойства

Свойство Тип Описание
$email string The attendee's email address.
$name string The attendee's full name.
$response integer One of the Kronolith::RESPONSE_* constants
$role integer One of the Kronolith::PART_* constants
$user string The attendee's user name.

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

Метод Описание
__construct ( array $params ) Constructor.
__get ( $what )
__toString ( )
matchesEmail ( string $email, boolean $caseSensitive ) : boolean Returns whether an email address matches this attendee.
migrate ( string $email, array $data ) Migrates data from an old attendee structure.
serialize ( )
toJson ( ) : object Returns a simple object suitable for JSON transport representing this event.
unserialize ( $data )

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

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

Constructor.
public __construct ( array $params )
$params array Attendee properties: - 'user': (string) A user name. - 'email': (string) The email address of the attendee. - 'role': (integer) The role code of the attendee. One of the Kronolith::PART_* constants. Default: Kronolith::PART_REQUIRED - 'response': (integer) The response code of the attendee. One of the Kronolith::RESPONSE_* constants. Default: Kronolith::RESPONSE_NONE - 'name': (string) The name of the attendee. - 'identities': (Horde_Core_Factory_Identity) An identity factory used to complete 'email' and 'name' for 'user' if not specified explicitly.

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

public __get ( $what )

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

public __toString ( )

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

Returns whether an email address matches this attendee.
public matchesEmail ( string $email, boolean $caseSensitive ) : boolean
$email string An email address.
$caseSensitive boolean Whether to match case-sensitive.
Результат boolean True if the email address matches this attendee.

migrate() публичный статический Метод

Migrates data from an old attendee structure.
public static migrate ( string $email, array $data )
$email string The attendee's email address.
$data array The attendee data from before Kronolith 5.

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

public serialize ( )

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

Returns a simple object suitable for JSON transport representing this event.
public toJson ( ) : object
Результат object An object respresenting this attendee.

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

public unserialize ( $data )

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

$email публичное свойство

The attendee's email address.
public string $email
Результат string

$name публичное свойство

The attendee's full name.
public string $name
Результат string

$response публичное свойство

One of the Kronolith::RESPONSE_* constants
public int $response
Результат integer

$role публичное свойство

One of the Kronolith::PART_* constants
public int $role
Результат integer

$user публичное свойство

The attendee's user name.
public string $user
Результат string