PHP 클래스 ElggExtender, Elgg

Extenders allow you to attach extended information to an ElggEntity. Core supports two: ElggAnnotation, ElggMetadata, and ElggRelationship Saving the extender data to database is handled by the child class.
또한 보기: ElggAnnotation
또한 보기: ElggMetadata
상속: extends ElggData
파일 보기 프로젝트 열기: elgg/elgg 1 사용 예제들

공개 메소드들

메소드 설명
__get ( string $name ) : mixed Gets an attribute
__set ( string $name, mixed $value ) : void Set an attribute
canEdit ( integer $user_guid ) : boolean Returns if a user can edit this entity extender.
getEntity ( ) : ElggEntity Get the entity this describes.
getOwnerEntity ( ) : ElggEntity Get the entity that owns this extender
getOwnerGUID ( ) : integer Get the GUID of the extender's owner entity.
getSubtype ( ) : string Return a subtype. For metadata & annotations this is the 'name' and for relationship this is the relationship type.
getSystemLogID ( ) : integer Return an identification for the object for storage in the system log.
getType ( ) : string Return a type of extension.
getURL ( ) : string Get a url for this extender.
setValue ( mixed $value, string $value_type = '' ) : void Set the value of the extender
toObject ( )

보호된 메소드들

메소드 설명
initializeAttributes ( ) : void (non-PHPdoc)

메소드 상세

__get() 공개 메소드

Gets an attribute
public __get ( string $name ) : mixed
$name string Name
리턴 mixed

__set() 공개 메소드

Set an attribute
public __set ( string $name, mixed $value ) : void
$name string Name
$value mixed Value
리턴 void

canEdit() 추상적인 공개 메소드

Returns if a user can edit this entity extender.
또한 보기: elgg_set_ignore_access()
abstract public canEdit ( integer $user_guid ) : boolean
$user_guid integer The GUID of the user doing the editing (defaults to currently logged in user)
리턴 boolean

getEntity() 공개 메소드

Get the entity this describes.
public getEntity ( ) : ElggEntity
리턴 ElggEntity The entity

getOwnerEntity() 공개 메소드

Get the entity that owns this extender
public getOwnerEntity ( ) : ElggEntity
리턴 ElggEntity

getOwnerGUID() 공개 메소드

Get the GUID of the extender's owner entity.
public getOwnerGUID ( ) : integer
리턴 integer The owner GUID

getSubtype() 공개 메소드

Return a subtype. For metadata & annotations this is the 'name' and for relationship this is the relationship type.
public getSubtype ( ) : string
리턴 string

getSystemLogID() 공개 메소드

This id must be an integer.
public getSystemLogID ( ) : integer
리턴 integer

getType() 공개 메소드

Return a type of extension.
public getType ( ) : string
리턴 string

getURL() 공개 메소드

Plugins can register for the 'extender:url', plugin hook to customize the url for an annotation or metadata.
public getURL ( ) : string
리턴 string

initializeAttributes() 보호된 메소드

(non-PHPdoc)
또한 보기: ElggData::initializeAttributes()
protected initializeAttributes ( ) : void
리턴 void

setValue() 공개 메소드

Set the value of the extender
부터: 1.9
public setValue ( mixed $value, string $value_type = '' ) : void
$value mixed The value being set
$value_type string The type of the : 'integer' or 'text'
리턴 void

toObject() 공개 메소드

public toObject ( )