IMPIMP Base Class.
$Horde: imp/lib/IMP.php,v 1.449.4.130 2010-10-01 07:13:02 slusarz Exp $
Copyright 1999-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
Located in /lib/IMP.php (line 143)
string
flistSelect
([string $heading = ''], [boolean $abbrev = true], [array $filter = array()], [string $selected = null], [boolean $new_folder = false], [boolean $inc_tasklists = false], [boolean $inc_vfolder = false], [ $inc_notepads = false])
string
generateIMPUrl
(string $page, string $mailbox, [string $index = null], [string $tmailbox = null], [boolean $encode = true])
array
getStylesheets
([ $apps = null], [mixed $theme = ''], [boolean $inherit = true], string|array $app)
string
popupIMPString
(string $url, [array $params = array()], [integer $width = 700], [integer $height = 650])
void
setSort
([integer $by = null], [integer $dir = null], [string $mbox = null], [boolean $delete = false])
addAddress (line 388)
Adds a contact to the user defined address book.
addInlineScript (line 1643)
Add inline javascript to the output buffer.
appendNamespace (line 1361)
Make sure a user-entered mailbox contains namespace information.
bareAddress (line 368)
Returns the bare address.
canAutoLogin (line 191)
Returns whether we can log in without a login screen for $server_key.
checkAuthentication (line 224)
Makes sure the user has been authenticated to view the page.
checkRequestToken (line 331)
Check if a token for a form is valid.
composeLink (line 661)
Returns the appropriate link to call the message composition screen.
composeLinkArgs (line 628)
Prepares the arguments to use for composeLink().
defaultNamespace (line 1286)
Get the default personal namespace.
displayFolder (line 724)
If there is information available to tell us about a prefix in front of mailbox names that shouldn't be displayed to the user, then use it to strip that prefix out.
encryptList (line 1457)
Return a list of valid encrypt HTML option tags.
filePutContents (line 2248)
Wrapper to allow file_put_contents() use for PHP < 5.
TODO: Remove once PHP 5 is required.
filterText (line 766)
Filters a string, if requested.
flistSelect (line 463)
Wrapper around IMP_Folder::flist() which generates the body of a <select> form input from the generated folder list. The <select> and </select> tags are NOT included in the output of this function.
folderPref (line 1324)
Convert a preference value to/from the value stored in the preferences.
Preferences that need to call this function before storing/retrieving: trash_folder, spam_folder, drafts_folder, sent_mail_folder To allow folders from the personal namespace to be stored without this prefix for portability, we strip the personal namespace. To tell apart folders from the personal and any empty namespace, we prefix folders from the empty namespace with the delimiter.
generateIMPUrl (line 1384)
Generates a URL with necessary mailbox/index information.
getAutoLoginServer (line 152)
Returns the AutoLogin server key.
getCacheURL (line 2023)
Creates a URL for cached DIMP data.
getComposeArgs (line 566)
Checks for To:, Subject:, Cc:, and other compose window arguments and pass back either a URI fragment or an associative array with any of them which are present.
getCurrentMailboxInfo (line 1751)
Process mailbox/index information for current page load.
getIMPMboxParameters (line 1404)
Returns a list of parameters necessary to indicate current mailbox status.
getLabel (line 353)
Returns the plain text label that is displayed for the current mailbox, replacing IMP_SEARCH_MBOX with an appropriate string and removing namespace and folder prefix information from what is shown to the user.
getLogoutUrl (line 1767)
Returns the proper logout URL for logging out of IMP.
getMenu (line 827)
Build IMP's list of menu items.
getNamespace (line 1237)
Get namespace info for a full folder path.
getNewMessagePopup (line 1073)
Outputs the necessary javascript code to display the new mail notification message.
getPathInfo (line 2311)
Utility function to obtain PATH_INFO information.
getRequestToken (line 318)
Get a token for protecting a form.
getSort (line 1518)
Return the sorting preference for the current mailbox.
getStylesheets (line 2164)
Return the list of base stylesheets to display.
TODO: Copied from Horde 3.2 for BC purposes.
getTidyConfig (line 1842)
Determines if the tidy extension is available and is the correct version. Returns the config array.
hasPermission (line 790)
Returns the specified permission for the current user.
hideDeletedMsgs (line 1427)
Determine whether we're hiding deleted messages.
includeScriptFiles (line 1922)
Outputs the necessary script tags, honoring local configuration choices as to script caching.
includeStylesheetFiles (line 2043)
Outputs the necessary style tags, honoring local configuration choices as to stylesheet caching.
isPreferredServer (line 263)
Determines if the given mail server is the "preferred" mail server for
this web server. This decision is based on the global 'SERVER_NAME' and 'HTTP_HOST' server variables and the contents of the 'preferred' either field in the server's definition. The 'preferred' field may take a single value or an array of multiple values.
isSpecialFolder (line 1715)
Is $mbox a 'special' folder (e.g. 'drafts' or 'sent-mail' folder)?
loginLogMessage (line 1803)
Output login message to use for Horde log.
loginTasksFlag (line 1214)
Either sets or checks the value of the logintasks flag.
logoutUrl (line 685)
Generates an URL to the logout screen that includes any known information, such as username, server, etc., that can be filled in on the login form.
menu (line 924)
Outputs IMP's menu to the current output stream.
numberFormat (line 2358)
Replacement for number_format() which doesn't work with multibyte separators.
openComposeWin (line 599)
Open a compose window.
outputInlineScript (line 1681)
Print pending inline javascript to the output buffer.
parseAddressList (line 421)
Parses an address or address list into the address components.
parseIndicesList (line 1157)
Get message indices list.
1. An array of messages indices in the following format:
msg_id IMP_IDX_SEP msg_folder
msg_id = Message index of the message
IMP_IDX_SEP = IMP constant used to separate index/folder
msg_folder = The full folder name containing the message index
2. An array with the full folder name as keys and an array of message
indices as the values.
3. An IMP_Mailbox object, which will use the current index/folder
as determined by the object. If an IMP_Mailbox object is used, it
will be updated after the action is performed.
popupIMPString (line 1788)
Output the javascript needed to call the popup_imp JS function.
prefsURL (line 1115)
Generates the URL to the prefs page.
printMode (line 1127)
Are we currently in "print" mode?
quota (line 973)
Outputs IMP's quota information.
quotaData (line 994)
Returns data needed to output quota.
recomposeLogin (line 1500)
Returns true if we are doing a login for recomposition purposes.
redirect (line 2338)
Utility function to send redirect headers to browser, handling any browser quirks.
removeBareNewlines (line 1733)
Remove "bare newlines" from a string.
sendHTTPResponse (line 1871)
Send response data to browser.
serverString (line 297)
Generates a full c-client server specification string.
setSort (line 1598)
Set the sorting preference for the current mailbox.
TODO: Purge non-existant search sorts (i.e. non VFolder entries).
status (line 948)
Outputs IMP's status/notification bar.
threadSortAvailable (line 1578)
Determines if thread sorting is available.
wrapInlineScript (line 1701)
Print inline javascript to output buffer after wrapping with necessary javascript tags.
Documentation generated on Sun, 30 Jan 2011 05:28:12 +0000 by phpDocumentor 1.4.3