PHP Class ElggComment, Elgg

Since: 1.9.0
Inheritance: extends ElggObject
ファイルを表示 Open project: elgg/elgg Class Usage Examples

Public Methods

Method Description
canComment ( integer $user_guid, boolean $default = null ) : boolean Can a user comment on this object? Always returns false (threaded comments not yet supported)
save ( boolean $update_last_action = true ) : boolean | integer Update container entity last action on successful save.

Protected Methods

Method Description
initializeAttributes ( ) : void Set subtype to comment

Method Details

canComment() public method

Can a user comment on this object? Always returns false (threaded comments not yet supported)
See also: ElggEntity::canComment()
Since: 1.9.0
public canComment ( integer $user_guid, boolean $default = null ) : boolean
$user_guid integer User guid (default is logged in user)
$default boolean Default permission
return boolean

initializeAttributes() protected method

Set subtype to comment
protected initializeAttributes ( ) : void
return void

save() public method

Update container entity last action on successful save.
public save ( boolean $update_last_action = true ) : boolean | integer
$update_last_action boolean Update the container entity's last_action field
return boolean | integer