PHP Class LogController, vanilla

Inheritance: extends Controller
Afficher le fichier Open project: vanilla/vanilla Class Usage Examples

Méthodes publiques

Свойство Type Description
$Form Gdn_Form
$LogModel LogModel
$Uses Objects to prep.

Méthodes publiques

Méthode 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.

Méthodes protégées

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

Method Details

confirm() public méthode

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

count() public méthode

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

delete() public méthode

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

deleteSpam() public méthode

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

edits() public méthode

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

formatContent() protected méthode

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

initialize() public méthode

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

moderation() public méthode

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

notSpam() public méthode

public notSpam ( )

record() public méthode

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

restore() public méthode

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

spam() public méthode

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

user() public méthode

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
Résultat Gdn_Form

$LogModel public_oe property

public LogModel $LogModel
Résultat LogModel

$Uses public_oe property

Objects to prep.
public $Uses