PHP Class PHPFusion\PrivateMessages

Mostra file Open project: php-fusion/PHP-Fusion Class Usage Examples

Public Methods

Method Description
display_inbox ( )
display_settings ( ) PM settings page
getInfo ( ) : array
get_pm_settings ( $user_id, $key = NULL )
pm_form ( ) Private message forms pm_form (Short form) pm_mainForm (Full composing environment)
pm_mainForm ( ) New message form
send_pm ( $to, $from, $subject, $message, $smileys = 'y', $to_group = FALSE, $save_sent = TRUE )
validate_user ( $user_id )

Private Methods

Method Description
archive_pm ( ) Actions : archive Require - $_POST selectedPM, delete_pm SQL archive action
delete_pm ( ) Actions: delete Require - $_POST selectedPM, delete_pm SQL delete message pm
mark_pm ( ) Actions : marking Require - $_POST selectedPM, mark SQL mark all, mark single (read or unread)
send_message ( ) Reply and send SQL send pm
setInbox ( )
unarchive_pm ( ) Add send to group using recursive statement.

Method Details

display_inbox() public method

public display_inbox ( )

display_settings() public method

PM settings page
public display_settings ( )

getInfo() public method

public getInfo ( ) : array
return array

get_pm_settings() public static method

public static get_pm_settings ( $user_id, $key = NULL )

pm_form() public method

Private message forms pm_form (Short form) pm_mainForm (Full composing environment)
public pm_form ( )

pm_mainForm() public method

New message form
public pm_mainForm ( )

send_pm() public static method

public static send_pm ( $to, $from, $subject, $message, $smileys = 'y', $to_group = FALSE, $save_sent = TRUE )

validate_user() public method

public validate_user ( $user_id )