PHP Class mcp_queue

Exibir arquivo Open project: phpbb/phpbb Class Usage Examples

Public Properties

Property Type Description
$p_master
$u_action

Public Methods

Method Description
approve_posts ( $action, $post_id_list, $id, $mode ) : null Approve/Restore posts
approve_topics ( $action, $topic_id_list, $id, $mode ) : null Approve/Restore topics
disapprove_posts ( $post_id_list, $id, $mode ) : null Disapprove Post
main ( $id, $mode )
mcp_queue ( &$p_master )

Method Details

approve_posts() public static method

Approve/Restore posts
public static approve_posts ( $action, $post_id_list, $id, $mode ) : null
$action string Action we perform on the posts ('approve' or 'restore')
$post_id_list array IDs of the posts to approve/restore
$id mixed Category of the current active module
$mode string Active module
return null

approve_topics() public static method

Approve/Restore topics
public static approve_topics ( $action, $topic_id_list, $id, $mode ) : null
$action string Action we perform on the posts ('approve' or 'restore')
$topic_id_list array IDs of the topics to approve/restore
$id mixed Category of the current active module
$mode string Active module
return null

disapprove_posts() public static method

Disapprove Post
public static disapprove_posts ( $post_id_list, $id, $mode ) : null
$post_id_list array IDs of the posts to disapprove/delete
$id mixed Category of the current active module
$mode string Active module
return null

main() public method

public main ( $id, $mode )

mcp_queue() public method

public mcp_queue ( &$p_master )

Property Details

$p_master public_oe property

public $p_master

$u_action public_oe property

public $u_action