PHP Class ActivityController, vanilla

Inheritance: extends BaseController
Show file Open project: vanilla/vanilla Class Usage Examples

Public Properties

Property Type Description
$ActivityModel ActivityModel
$Uses Models to include.

Public Methods

Method Description
__get ( $Name ) : Gdn_DataSet Create some virtual properties.
comment ( ) Comment on an activity item.
delete ( integer $ActivityID = '', string $TransientKey = '' ) Delete an activity item.
deleteComment ( $ID, $TK, $Target = '' )
index ( $Filter = false, $Page = false ) Default activity stream.
initialize ( ) Include JS, CSS, and modules used by all methods.
item ( integer $ActivityID ) Display a single activity item & comments.
post ( boolean $Notify = false, boolean $UserID = false )

Method Details

__get() public method

Create some virtual properties.
public __get ( $Name ) : Gdn_DataSet
$Name
return Gdn_DataSet

comment() public method

Comment on an activity item.
Since: 2.0.0
public comment ( )

delete() public method

Delete an activity item.
Since: 2.0.0
public delete ( integer $ActivityID = '', string $TransientKey = '' )
$ActivityID integer Unique ID of item to delete.
$TransientKey string Verify intent.

deleteComment() public method

public deleteComment ( $ID, $TK, $Target = '' )

index() public method

Default activity stream.
Since: 2.0.0
public index ( $Filter = false, $Page = false )

initialize() public method

Always called by dispatcher before controller's requested method.
Since: 2.0.0
public initialize ( )

item() public method

Email notifications regarding activities link to this method.
Since: 2.0.0
public item ( integer $ActivityID )
$ActivityID integer Unique ID of activity item to display.

post() public method

public post ( boolean $Notify = false, boolean $UserID = false )
$Notify boolean
$UserID boolean

Property Details

$ActivityModel public property

public ActivityModel $ActivityModel
return ActivityModel

$Uses public property

Models to include.
public $Uses