PHP 클래스 ElggRiverItem, Elgg

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

공개 프로퍼티들

프로퍼티 타입 설명
$access_id
$action_type
$annotation_id
$enabled
$id
$object_guid
$posted
$subject_guid
$subtype
$target_guid
$type
$view

공개 메소드들

메소드 설명
__construct ( stdClass $object ) Construct a river item object given a database row.
canDelete ( integer $user_guid ) : boolean Can a user delete this river item?
delete ( ) : boolean Delete the river item
getAnnotation ( ) : ElggAnnotation Get the Annotation for this river item
getObjectEntity ( ) : ElggEntity Get the object of this river item
getSubjectEntity ( ) : ElggEntity Get the subject of this river item
getSubtype ( ) : string Get the subtype of the object
getTargetEntity ( ) : ElggEntity Get the target of this river item
getTimePosted ( ) : integer Get the time this activity was posted
getType ( ) : string Get the type of the object
getView ( ) : string Get the view used to display this river item
toObject ( ) : stdClass Get a plain old object copy for public consumption

메소드 상세

__construct() 공개 메소드

Construct a river item object given a database row.
public __construct ( stdClass $object )
$object stdClass Object obtained from database

canDelete() 공개 메소드

Can a user delete this river item?
부터: 2.3
public canDelete ( integer $user_guid ) : boolean
$user_guid integer The user GUID, optionally (default: logged in user)
리턴 boolean Whether this river item should be considered deletable by the given user.

delete() 공개 메소드

Delete the river item
부터: 2.3
public delete ( ) : boolean
리턴 boolean False if the user lacks permission or the before event is cancelled

getAnnotation() 공개 메소드

Get the Annotation for this river item
public getAnnotation ( ) : ElggAnnotation
리턴 ElggAnnotation

getObjectEntity() 공개 메소드

Get the object of this river item
public getObjectEntity ( ) : ElggEntity
리턴 ElggEntity

getSubjectEntity() 공개 메소드

Get the subject of this river item
public getSubjectEntity ( ) : ElggEntity
리턴 ElggEntity

getSubtype() 공개 메소드

This is required for elgg_view_list_item().
public getSubtype ( ) : string
리턴 string 'item'

getTargetEntity() 공개 메소드

Get the target of this river item
public getTargetEntity ( ) : ElggEntity
리턴 ElggEntity

getTimePosted() 공개 메소드

Get the time this activity was posted
public getTimePosted ( ) : integer
리턴 integer

getType() 공개 메소드

This is required for elgg_view_list_item(). All the other data types (entities, extenders, relationships) have a type/subtype.
public getType ( ) : string
리턴 string 'river'

getView() 공개 메소드

Get the view used to display this river item
public getView ( ) : string
리턴 string

toObject() 공개 메소드

Get a plain old object copy for public consumption
public toObject ( ) : stdClass
리턴 stdClass

프로퍼티 상세

$access_id 공개적으로 프로퍼티

public $access_id

$action_type 공개적으로 프로퍼티

public $action_type

$annotation_id 공개적으로 프로퍼티

public $annotation_id

$enabled 공개적으로 프로퍼티

public $enabled

$id 공개적으로 프로퍼티

public $id

$object_guid 공개적으로 프로퍼티

public $object_guid

$posted 공개적으로 프로퍼티

public $posted

$subject_guid 공개적으로 프로퍼티

public $subject_guid

$subtype 공개적으로 프로퍼티

public $subtype

$target_guid 공개적으로 프로퍼티

public $target_guid

$type 공개적으로 프로퍼티

public $type

$view 공개적으로 프로퍼티

public $view