FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Static Public Attributes | Static Protected Member Functions | List of all members
Mail_Controller Class Reference
Inheritance diagram for Mail_Controller:
Mail_messages_Controller Controller

Public Member Functions

 index ()
 index redirects to inbox
 inbox ($limit_results=10, $page_word=null, $page=1)
 Function to get all inbox messages of user.
 sent ($limit_results=10, $page_word=null, $page=1)
 Function to get all inbox messages of user.
 show_message ($message_id=NULL)
 Function to get message.
 write_message ($to_id=NULL, $origin_id=NULL)
 Function to write message.
 delete_message ($message_id=NULL)
 Function to delete message.
 mark_inbox_read ()
 Function to mark all messages as read.
- Public Member Functions inherited from Mail_messages_Controller
 show ($message_id=NULL)
 Shows mail message.
 add ()
 Adds new mail message.
 write ($to_id=NULL, $origin_id=NULL)
 Adds new mail message.
 valid_to_field ($input=NULL)
 Validator.
- Public Member Functions inherited from Controller
 __construct ()
 Contruct of controller, creates singleton or return it.
 is_user_in_group ($aro_group_id, $aro_id)
 Checks if user is in ARO group.
 acl_check_view ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may view all $axo_value object in $axo_section else return false.
 acl_check_edit ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may edit all $axo_value object in $axo_section else return false.
 acl_check_new ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may add all $axo_value object in $axo_section else return false.
 acl_check_delete ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may delete all $axo_value object in $axo_section else return false.
 build_menu ()
 Build menu.
 url ()
 Return URL for controller and method.
 redirect ($uri=NULL, $id=NULL, $glue= '/')
 Redirects to uri according to attribute noredirect.

Static Public Attributes

static $sections

Static Protected Member Functions

static from_field ($item, $name)
 Callback function to return sender as link, marks unread message.
static to_field ($item, $name)
 Callback function to return recipient as link, marks unread message.
static subject_field ($item, $name)
 Callback function to return subject as link, marks unread message.
static time_field ($item, $name)
 Callback function to return time in human format (Google style)

Additional Inherited Members

- Static Public Member Functions inherited from Controller
static & instance ()
 Singleton instance of Controller.
static error ($message_type, $content=NULL)
 Function shows error of given message number.
static warning ($message_type, $content=NULL)
 Function shows warning of given message number.
- Public Attributes inherited from Controller
const ICON_ERROR = 1
const ICON_GOOD = 2
const ICON_HELP = 3
const ICON_INFO = 4
const ICON_WARNING = 5
 $arr
 $settings = NULL
 $popup = 0
 $dialog = 0
 $noredirect = FALSE
 $user_has_voip = 0
 $ip_address_span = ''
 $unread_user_mails = 0
 $count_of_unclosed_logged_errors = 0
 $devices_down_count = 0
 $user_favourites_pages = NULL
 $axo_doc_access = FALSE
- Protected Member Functions inherited from Controller
 is_preprocesor_enabled ()
 This methods defines whether the preprocessor of MY_Controller is loaded or not.
- Protected Attributes inherited from Controller
 $member_id
 $user_id
 $member_account_id = 1
 $session

Member Function Documentation

Mail_Controller::delete_message (   $message_id = NULL)

Function to delete message.

Author
Michal Kliment
Parameters
number$message_id
static Mail_Controller::from_field (   $item,
  $name 
)
staticprotected

Callback function to return sender as link, marks unread message.

Author
Michal Kliment
Parameters
object$item
string$name
Mail_Controller::inbox (   $limit_results = 10,
  $page_word = null,
  $page = 1 
)

Function to get all inbox messages of user.

Author
Michal Kliment
Parameters
number$limit_results
string$page_word
number$page
Mail_Controller::sent (   $limit_results = 10,
  $page_word = null,
  $page = 1 
)

Function to get all inbox messages of user.

Author
Michal Kliment
Parameters
number$limit_results
string$page_word
number$page
Mail_Controller::show_message (   $message_id = NULL)

Function to get message.

Author
Michal Kliment
Parameters
number$message_id
static Mail_Controller::subject_field (   $item,
  $name 
)
staticprotected

Callback function to return subject as link, marks unread message.

Author
Michal Kliment
Parameters
object$item
string$name
static Mail_Controller::time_field (   $item,
  $name 
)
staticprotected

Callback function to return time in human format (Google style)

Author
Michal Kliment
Parameters
object$item
string$name
static Mail_Controller::to_field (   $item,
  $name 
)
staticprotected

Callback function to return recipient as link, marks unread message.

Author
Michal Kliment
Parameters
object$item
string$name
Mail_Controller::write_message (   $to_id = NULL,
  $origin_id = NULL 
)

Function to write message.

Author
Michal Kliment
Parameters
number$to_id
number$origin_id

Member Data Documentation

Mail_Controller::$sections
static
Initial value:
array
(
'mail/inbox' => 'Mail inbox',
'mail/sent' => 'Mail sent',
'mail/write_message' => 'Write new message'
)

The documentation for this class was generated from the following file: