Class: base_messages

Quellcode Position: Program_Root/base_messages.php

Class base_messages

Class Overview
Inherited Properties And Methods
Inherited Properties Inherited Methods

Abgeleitet von base_db

base_db::$dbobj_name
base_db::$dbsocket
base_db::$db_obj
base_db::$msgs

Abgeleitet von base_db

base_db::createDBObject()
Create data base object(PEAR)
base_db::db_addField()
Interface function: insert field
base_db::db_addIndex()
Interface function: insert index
base_db::db_changeField()
Interface function: change field
base_db::db_changeIndex()
Interface function: change index
base_db::db_connect()
Connect to data base object
base_db::db_createTable()
Interface function: create given table
base_db::db_deleteRecord()
Interface function: delete database record
base_db::db_deleteRecords()
Interface function: delete records
base_db::db_dropField()
Interface function: delete field
base_db::db_dropIndex()
Interface function: delete index
base_db::db_emptyTable()
Interface function: delete ALL data in this table
base_db::db_getSQLSource()
DBMS spezific SQL source
base_db::db_insertRecord()
Interface function: create new record, return ID, set default values
base_db::db_insertRecords()
Interface function: insert records
base_db::db_query()
Interface function: submit database query
base_db::db_queryFmt()
Interface function: escape params and submit query
base_db::db_queryTableNames()
Interface function: delete all table names
base_db::db_queryTableStructure()
Interface function: table structur returned as array
base_db::db_updateRecord()
Interface function: change data record
base_db::db_updateRecords()
Interface function: change data records
base_db::escapeStr()
Store string in sql for use

Abgeleitet von base_object

base_object::addmsg()
Adds a message in the message object.
base_object::createPluginObject()
Create plugin object
base_object::debug()
Show the debug of the variable &$var
base_object::encodeQueryString()
Encode query string
base_object::escapeForFilename()
Escape chars in a string to use it in a filename
base_object::getAbsoluteURL()
Return absolute URL
base_object::getBaseLink()
Get base link
base_object::getBasePath()
get base path to current script
base_object::getLink()
Get link
base_object::getSessionValue()
base_object::getWebLink()
Get web link
base_object::getWebMediaLink()
Get web media link
base_object::includePluginFile()
Include plugin file
base_object::initializeParams()
Parameter initialisation
base_object::initializeSessionParam()
Initialisation of session-parameter
base_object::logMsg()
Log events
base_object::parseRequestURI()
Parse request URI to filter data out of it
base_object::setSessionValue()
base_object::stripslashes()
base_object::_gt()
Phrasetranslator - Fetch translation for all phrase
base_object::_gtf()
Phrasetranslator - Fetch translation of one phrase and insert variable
base_object::_gtfile()
Phrases - Locate files

Properties Summary
mixed   $auth_user  
mixed   $baselink  
mixed   $css_class_input  
mixed   $dburi  
mixed   $images  
mixed   $layout  
mixed   $messagetable  
mixed   $msglist  
mixed   $msgtree  
mixed   $newmsg_fields  
mixed   $paramname  
mixed   $params  
mixed   $sessionparamname  
mixed   $sessionparams  
mixed   $users  
mixed   $usertable  

Method Summary
string   addrStrToJs()   address string to Javascript
boolean   checkAndCompleteAddresses()   Check and complete addresses
mixed   decodeAddresses()   Decode addresses
boolean   deleteMessage()   Delete Message
void   execute()   Basic class for handling parameters
string   formatMessage()   format message
string   getAddressCombo()   Get address combo
string   getAddressesStr()   Get addresses string
void   getAddressJSForm()   Get address javascript formular
string   getAddressLine()   Get address line
void   getButtons()   Get buttons
string   getEMailString()   Get email string
mixed   getFolderGlyph()   Get folder glyph
void   getFolderPanel()   Get folder panel
string   getFolderTitle()   Get folder title
void   getMessageList()   get message list
string   getMessageSubThread()   Get message sub thread
void   getMessageThread()   Get message thread
void   getMessageView()   Get message view
integer   getMsgGlyphIndex()   Get message glyph index
void   getNewMessageForm()   Get new message formular
integer   getPriorityGlyphIndex()   Get priority glyph index
void   getUserEmailAddress()  
void   getUserEmailName()  
void   getXML()   Get XML
void   initialize()   Initialize parameters
void   initializeNewMessageForm()   Initialize new message formular
void   initializeSessionParam()   Initialize session parameters
void   loadMessage()   Load message
void   loadMessages()   Load messages
void   loadMessageThread()   Load message thread
integer   loadThreadId()   Load thread id
void   loadUsers()   Load user
mixed   parseQuotes()   Parse quotes
string   preformatted()   Per formatted
string   rewrapMessage()   Rewrap message
void   saveMessage()   Save message
void   sendMessage()   Send message
boolaen   updateReaded()   Update readed

Properties
mixed   $auth_user = null [Zeile 34]

mixed   $baselink [Zeile 30]

mixed   $css_class_input = bigmegainput [Zeile 40]

mixed   $dburi = PAPAYA_DB_URI [Zeile 22]
Neudefinition von:
base_db::$dburi
Database URI

mixed   $images = null [Zeile 33]

mixed   $layout = null [Zeile 32]

mixed   $messagetable = PAPAYA_DB_TBL_MESSAGES [Zeile 24]

mixed   $msglist = null [Zeile 36]

mixed   $msgtree = null [Zeile 37]

mixed   $newmsg_fields = array('to' =>array('RCPT', 'isSomeText', true, 'textarea', 3),
'cc' =>array('CC', 'isSomeText', false, 'textarea', 3),
'bcc' =>array('BCC', 'isSomeText', false, 'textarea', 3),
'priority'=>array('Priority', 'isNum', true, 'combo', array(0=>'normal',1=>'high',2=>'urgent')),
'subject' =>array('Subject', 'isSomeText', true, 'input', 200),
'message' =>array('Text', 'isSomeText', true, 'textarea', 30),
)
[Zeile 42]

mixed   $paramname = msg [Zeile 26]

mixed   $params = null [Zeile 28]

mixed   $sessionparamname = msg [Zeile 27]

mixed   $sessionparams = null [Zeile 29]

mixed   $users = null [Zeile 38]

mixed   $usertable = PAPAYA_DB_TBL_AUTHUSER [Zeile 23]

Methods
addrStrToJs  [Zeile 654]

  string addrStrToJs( string $str, array $field  )

address string to Javascript

Parameters:
string   $str: 
array   $field: 

API Tags:
Access:  public


checkAndCompleteAddresses  [Zeile 863]

  boolean checkAndCompleteAddresses( array &$addrlists  )

Check and complete addresses

Parameters:
array   &$addrlists: 

API Tags:
Access:  public


decodeAddresses  [Zeile 267]

  mixed decodeAddresses( string $str  )

Decode addresses

Parameters:
string   $str: 

API Tags:
Return:  array or NULL
Access:  public


deleteMessage  [Zeile 810]

  boolean deleteMessage( )

Delete Message


API Tags:
Access:  public


execute  [Zeile 74]

  void execute( )

Basic class for handling parameters


API Tags:
Access:  public


formatMessage  [Zeile 1016]

  string formatMessage( string $str  )

format message

Parameters:
string   $str: 

API Tags:
Access:  public


getAddressCombo  [Zeile 606]

  string getAddressCombo( array $list, string $name  )

Get address combo

Parameters:
array   $list: 
string   $name: 

API Tags:
Return:  html
Access:  public


getAddressesStr  [Zeile 574]

  string getAddressesStr( array $addr, [boolean $linked = false]  )

Get addresses string

Parameters:
array   $addr: 
boolean   $linked:  optional, default value false

API Tags:
Access:  public


getAddressJSForm  [Zeile 672]

  void getAddressJSForm( )

Get address javascript formular


API Tags:
Access:  public


getAddressLine  [Zeile 639]

  string getAddressLine( array $addrlist, array $fieldname, string $caption  )

Get address line

Parameters:
array   $addrlist: 
array   $fieldname: 
string   $caption: 

API Tags:
Return:  XML
Access:  public


getButtons  [Zeile 893]

  void getButtons( )

Get buttons


API Tags:
Access:  public


getEMailString  [Zeile 845]

  string getEMailString( array $addrlist  )

Get email string

Parameters:
array   $addrlist: 

API Tags:
Access:  public


getFolderGlyph  [Zeile 557]

  mixed getFolderGlyph( integer $index  )

Get folder glyph

Parameters:
integer   $index: 

API Tags:
Access:  public


getFolderPanel  [Zeile 326]

  void getFolderPanel( )

Get folder panel


API Tags:
Access:  public


getFolderTitle  [Zeile 541]

  string getFolderTitle( integer $index  )

Get folder title

Parameters:
integer   $index: 

API Tags:
Access:  public


getMessageList  [Zeile 344]

  void getMessageList( )

get message list


API Tags:
Access:  public


getMessageSubThread  [Zeile 410]

  string getMessageSubThread( integer $ids, integer $indent  )

Get message sub thread

Parameters:
integer   $ids: 
integer   $indent: 

API Tags:
Return:  '' or XML
Access:  public


getMessageThread  [Zeile 379]

  void getMessageThread( )

Get message thread


API Tags:
Access:  public


getMessageView  [Zeile 442]

  void getMessageView( )

Get message view


API Tags:
Access:  public


getMsgGlyphIndex  [Zeile 503]

  integer getMsgGlyphIndex( integer $type, boolean $new, boolean $opened  )

Get message glyph index

Parameters:
integer   $type: 
boolean   $new: 
boolean   $opened: 

API Tags:
Access:  public


getNewMessageForm  [Zeile 723]

  void getNewMessageForm( )

Get new message formular


API Tags:
Access:  public


getPriorityGlyphIndex  [Zeile 526]

  integer getPriorityGlyphIndex( integer $priority  )

Get priority glyph index

Parameters:
integer   $priority: 

API Tags:
Access:  public


getUserEmailAddress  [Zeile 1049]

  void getUserEmailAddress( mixed &$userdata  )



getUserEmailName  [Zeile 1056]

  void getUserEmailName( mixed &$userdata  )



getXML  [Zeile 299]

  void getXML( )

Get XML


API Tags:
Access:  public


initialize  [Zeile 59]

  void initialize( [string $paramname = 'msg']  )

Initialize parameters

Parameters:
string   $paramname:  optional, default value 'msg'

API Tags:
Access:  public


initializeNewMessageForm  [Zeile 700]

  void initializeNewMessageForm( )

Initialize new message formular


API Tags:
Access:  public


initializeSessionParam  [Zeile 143]

  void initializeSessionParam( $name $name, [mixed $resetparams = NULL]  )

Initialize session parameters

Parameters:
mixed   $resetparams:  optional, default value NULL
$name   $name: 

API Tags:
Access:  public

Neudefinition von:
base_object::initializeSessionParam()
Initialisation of session-parameter

loadMessage  [Zeile 208]

  void loadMessage( integer $id  )

Load message

Parameters:
integer   $id: 

API Tags:
Access:  public


loadMessages  [Zeile 162]

  void loadMessages( )

Load messages


API Tags:
Access:  public


loadMessageThread  [Zeile 184]

  void loadMessageThread( integer $id  )

Load message thread

Parameters:
integer   $id: 

API Tags:
Access:  public


loadThreadId  [Zeile 248]

  integer loadThreadId( integer $id  )

Load thread id

Parameters:
integer   $id: 

API Tags:
Access:  public


loadUsers  [Zeile 229]

  void loadUsers( )

Load user


API Tags:
Access:  public


parseQuotes  [Zeile 929]

  mixed parseQuotes( string $str, [boolean $addonly = false]  )

Parse quotes

Parameters:
string   $str: 
boolean   $addonly:  optional, default value false

API Tags:
Return:  array or NULL
Access:  public


preformatted  [Zeile 1000]

  string preformatted( string $str  )

Per formatted

Parameters:
string   $str: 

API Tags:
Access:  public


rewrapMessage  [Zeile 979]

  string rewrapMessage( string $str, [integer $add_indent = 0], [integer $line_length = 75], [boolean $addonly = true]  )

Rewrap message

Parameters:
string   $str: 
integer   $add_indent:  optional, default value 0
integer   $line_length:  optional, default value 75
boolean   $addonly:  optional, default value true

API Tags:
Access:  public


saveMessage  [Zeile 791]

  void saveMessage( array $addrlist, integer $data  )

Save message

Parameters:
array   $addrlist: 
integer   $data: 

API Tags:
Access:  public


sendMessage  [Zeile 733]

  void sendMessage( )

Send message


API Tags:
Access:  public


updateReaded  [Zeile 290]

  boolaen updateReaded( integer $id  )

Update readed

Parameters:
integer   $id: 

API Tags:
Access:  public