PHP Класс ElggRiverItem, Elgg

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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