PHP 클래스 ElggObject, Elgg

파일 보기 프로젝트 열기: elgg/elgg 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( stdClass $row = null ) Create a new \ElggObject.
canComment ( integer $user_guid, boolean $default = null ) : boolean Can a user comment on this object?
getDisplayName ( )
getExternalAttributes ( ) : array Get default values for attributes stored in a separate table
setDisplayName ( $displayName )

보호된 메소드들

메소드 설명
create ( )
initializeAttributes ( ) : void Initialize the attributes array to include the type, title, and description.
load ( mixed $guid ) : boolean Loads the full \ElggObject when given a guid.
prepareObject ( $object )
update ( )

메소드 상세

__construct() 공개 메소드

Plugin developers should only use the constructor to create a new entity. To retrieve entities, use get_entity() and the elgg_get_entities* functions. If no arguments are passed, it creates a new entity. If a database result is passed as a \stdClass instance, it instantiates that entity.
public __construct ( stdClass $row = null )
$row stdClass Database row result. Default is null to create a new object.

canComment() 공개 메소드

Can a user comment on this object?
또한 보기: ElggEntity::canComment()
부터: 1.8.0
public canComment ( integer $user_guid, boolean $default = null ) : boolean
$user_guid integer User guid (default is logged in user)
$default boolean Default permission
리턴 boolean

create() 보호된 메소드

protected create ( )

getDisplayName() 공개 메소드

public getDisplayName ( )

getExternalAttributes() 최종 공개 정적인 메소드

Get default values for attributes stored in a separate table
또한 보기: Elgg\Database\EntityTable::getEntities
final public static getExternalAttributes ( ) : array
리턴 array

initializeAttributes() 보호된 메소드

Initialize the attributes array to include the type, title, and description.
protected initializeAttributes ( ) : void
리턴 void

load() 보호된 메소드

Loads the full \ElggObject when given a guid.
protected load ( mixed $guid ) : boolean
$guid mixed GUID of an \ElggObject or the \stdClass object from entities table
리턴 boolean

prepareObject() 보호된 메소드

protected prepareObject ( $object )

setDisplayName() 공개 메소드

public setDisplayName ( $displayName )

update() 보호된 메소드

protected update ( )