PHP Class LogController, vanilla

Inheritance: extends Controller
Exibir arquivo Open project: vanilla/vanilla Class Usage Examples

Public Properties

Property Type Description
$Form Gdn_Form
$LogModel LogModel
$Uses Objects to prep.

Public Methods

Method Description
confirm ( ) Confirmation page.
count ( string $Operation ) Count log items.
delete ( ) Delete logs.
deleteSpam ( ) Delete spam and optionally delete the users.
edits ( $Type = '', integer $Page = '', $Op = false ) View list of edits (edit/delete actions).
initialize ( ) Always triggered first. Add Javascript files.
moderation ( integer $Page = '' ) View moderation logs.
notSpam ( )
record ( string $RecordType, integer $RecordID, $Page = '' ) Access the log history of a specific record
restore ( ) Restore logs.
spam ( integer $Page = '' ) View spam logs.
user ( $recordUserID, string $Page = '' ) Searches the logs for edit, delete or ban operations on posts made by the user with the given user ID.

Protected Methods

Method Description
formatContent ( object $Log ) Convenience method to call model's FormatContent.

Method Details

confirm() public method

Confirmation page.
Since: 2.0.?
public confirm ( )

count() public method

Count log items.
Since: 2.0.?
public count ( string $Operation )
$Operation string Comma-separated ist of action types to find.

delete() public method

Delete logs.
Since: 2.0.?
public delete ( )

deleteSpam() public method

Delete spam and optionally delete the users.
public deleteSpam ( )

edits() public method

View list of edits (edit/delete actions).
Since: 2.0.?
public edits ( $Type = '', integer $Page = '', $Op = false )
$Page integer Page number.

formatContent() protected method

Convenience method to call model's FormatContent.
Since: 2.0.?
protected formatContent ( object $Log )
$Log object .

initialize() public method

Always triggered first. Add Javascript files.
Since: 2.0.?
public initialize ( )

moderation() public method

View moderation logs.
Since: 2.0.?
public moderation ( integer $Page = '' )
$Page integer Page number.

notSpam() public method

public notSpam ( )

record() public method

Access the log history of a specific record
public record ( string $RecordType, integer $RecordID, $Page = '' )
$RecordType string
$RecordID integer

restore() public method

Restore logs.
Since: 2.0.?
public restore ( )

spam() public method

View spam logs.
Since: 2.0.?
public spam ( integer $Page = '' )
$Page integer Page number.

user() public method

Searches the logs for edit, delete or ban operations on posts made by the user with the given user ID.
public user ( $recordUserID, string $Page = '' )
$recordUserID The user ID to search the logs for.
$Page string The page number.

Property Details

$Form public_oe property

public Gdn_Form $Form
return Gdn_Form

$LogModel public_oe property

public LogModel $LogModel
return LogModel

$Uses public_oe property

Objects to prep.
public $Uses