[ Index ] |
|
Code source de IMP H3 (4.1.5) |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 525 lignes (15 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Identity_imp:: (18 méthodes):
Identity_imp()
verify()
getFromLine()
getAllFromLines()
getSelectList()
hasAddress()
getFromAddress()
getAliasAddress()
getAllFromAddresses()
getAllTieAddresses()
getBccAddresses()
getMatchingIdentity()
getFullname()
getSignature()
getAllSignatures()
getValue()
getAllSentmailFolders()
saveSentmail()
Classe: Identity_imp - X-Ref
This class provides an IMP-specific interface to all identities aIdentity_imp() X-Ref |
Reads all the user's identities from the prefs object or builds a new identity from the standard values given in prefs.php. |
verify($identity = null) X-Ref |
Verifies and sanitizes all identity properties. param: integer $identity The identity to verify. return: boolean|object True if the properties are valid or a PEAR_Error |
getFromLine($ident = null, $from_address = '') X-Ref |
Returns a complete From: header based on all relevent factors (fullname, from address, input fields, locks etc.) param: integer $ident The identity to retrieve the values from. param: string $from_address A default from address to use if no return: string A full From: header in the format |
getAllFromLines() X-Ref |
Returns an array with From: headers from all identities return: array The From: headers from all identities |
getSelectList() X-Ref |
Returns an array with the necessary values for the identity select box in the IMP compose window. return: array The array with the necessary strings |
hasAddress($address) X-Ref |
Returns true if the given address belongs to one of the identities. This function will search aliases for an identity automatically. param: string $address The address to search for in the identities. return: boolean True if the address was found. |
getFromAddress($ident = null) X-Ref |
Returns the from address based on the chosen identity. If no address can be found it is built from the current user name and the specified maildomain. param: integer $ident The identity to retrieve the address from. return: string A valid from address. |
getAliasAddress($ident) X-Ref |
Returns all aliases based on the chosen identity. param: integer $ident The identity to retrieve the aliases from. return: array Aliases for the identity. |
getAllFromAddresses($alias = false) X-Ref |
Returns an array with all identities' from addresses. param: boolean $alias Include aliases? return: array The array with |
getAllTieAddresses() X-Ref |
Get all 'tie to' address/identity pairs. return: array The array with |
getBccAddresses($ident = null) X-Ref |
Returns the BCC addresses for a given identity. param: integer $ident The identity to retrieve the Bcc addresses from. return: array The array of objects (IMAP addresses). |
getMatchingIdentity($addresses, $search_ties = true) X-Ref |
Returns the identity's id that matches the passed addresses. param: mixed $addresses Either an array or a single string or a param: boolean $search_ties Search for a matching identity in tied return: integer The id of the first identity that from or alias |
getFullname($ident = null) X-Ref |
Returns the user's full name. param: integer $ident The identity to retrieve the name from. return: string The user's full name. |
getSignature($ident = null) X-Ref |
Returns the full signature based on the current settings for the signature itself, the dashes and the position. param: integer $ident The identity to retrieve the signature from. return: string The full signature. |
getAllSignatures() X-Ref |
Returns an array with the signatures from all identities return: array The array with all the signatures. |
getValue($key, $identity = null) X-Ref |
getAllSentmailFolders() X-Ref |
Returns an array with the sent-mail folder names from all the identities. return: array The array with the folder names. |
saveSentmail($ident = null) X-Ref |
Returns true if the mail should be saved and the user is allowed to. param: integer $ident The identity to retrieve the setting from. return: boolean True if the sent mail should be saved. |
Généré le : Thu Nov 29 12:30:07 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |