PHP 클래스 IMP_Flag_Base, horde

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

보호된 프로퍼티들

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