PHP 클래스 Kronolith_Attendee, horde

저자: Jan Schneider ([email protected])
상속: implements Serializable
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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