| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Class ilAccountMail. More...
 Collaboration diagram for ilAccountMail:
 Collaboration diagram for ilAccountMail:| Public Member Functions | |
| __construct () | |
| constructor  public | |
| useLangVariablesAsFallback ($a_status) | |
| areLangVariablesUsedAsFallback () | |
| setUserPassword ($a_pwd) | |
| set user password | |
| getUserPassword () | |
| get user password | |
| setUser (&$a_user) | |
| Set user. | |
| & | getUser () | 
| get user object | |
| setTarget ($a_target) | |
| set repository item target | |
| getTarget () | |
| get target | |
| reset () | |
| reset all values | |
| readAccountMail ($a_lang) | |
| get new account mail array (including subject and message body) | |
| send () | |
| Sends the mail with its object properties as MimeMail It first tries to read the mail body, subject and sender address from posted named formular fields. | |
| replacePlaceholders ($a_string, &$a_user, $a_amail, $a_lang) | |
| addAttachment ($a_filename, $a_display_name) | |
| Data Fields | |
| $u_password = "" | |
| $user = "" | |
| $target = "" | |
| Private Attributes | |
| $lang_variables_as_fallback = false | |
| $attachments = array() | |
Class ilAccountMail.
Sends e-mail to newly created accounts.
Definition at line 13 of file class.ilAccountMail.php.
| ilAccountMail::__construct | ( | ) | 
| ilAccountMail::addAttachment | ( | $a_filename, | |
| $a_display_name | |||
| ) | 
Definition at line 319 of file class.ilAccountMail.php.
| ilAccountMail::areLangVariablesUsedAsFallback | ( | ) | 
Definition at line 53 of file class.ilAccountMail.php.
References $lang_variables_as_fallback.
Referenced by send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilAccountMail::getTarget | ( | ) | 
get target
public
Definition at line 120 of file class.ilAccountMail.php.
References $target.
| & ilAccountMail::getUser | ( | ) | 
get user object
public
Definition at line 98 of file class.ilAccountMail.php.
References $user.
Referenced by send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilAccountMail::getUserPassword | ( | ) | 
get user password
public
Definition at line 75 of file class.ilAccountMail.php.
References $u_password.
Referenced by replacePlaceholders().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilAccountMail::readAccountMail | ( | $a_lang | ) | 
get new account mail array (including subject and message body)
Definition at line 138 of file class.ilAccountMail.php.
References ilObjUserFolder\_lookupNewAccountMail().
Referenced by send().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilAccountMail::replacePlaceholders | ( | $a_string, | |
| & | $a_user, | ||
| $a_amail, | |||
| $a_lang | |||
| ) | 
Definition at line 235 of file class.ilAccountMail.php.
References $_GET, $ilSetting, ilLanguage\_lookupEntry(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), and getUserPassword().
Referenced by send().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilAccountMail::reset | ( | ) | 
reset all values
Definition at line 128 of file class.ilAccountMail.php.
| ilAccountMail::send | ( | ) | 
Sends the mail with its object properties as MimeMail It first tries to read the mail body, subject and sender address from posted named formular fields.
If no field values found the defaults are used. Placehoders will be replaced by the appropriate data. public
| object | ilUser | 
Definition at line 159 of file class.ilAccountMail.php.
References $filename, $ilSetting, $lang, $user, areLangVariablesUsedAsFallback(), getUser(), readAccountMail(), and replacePlaceholders().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilAccountMail::setTarget | ( | $a_target | ) | 
set repository item target
public
| string | $a_target | target as used in permanent links, e.g. crs_123 | 
Definition at line 109 of file class.ilAccountMail.php.
| ilAccountMail::setUser | ( | & | $a_user | ) | 
Set user.
The user object should provide email, language login, gender, first and last name
public
| object | $a_user | user object | 
Definition at line 87 of file class.ilAccountMail.php.
| ilAccountMail::setUserPassword | ( | $a_pwd | ) | 
set user password
public
| string | $a_pwd | users password as plain text | 
Definition at line 64 of file class.ilAccountMail.php.
| ilAccountMail::useLangVariablesAsFallback | ( | $a_status | ) | 
Definition at line 48 of file class.ilAccountMail.php.
| 
 | private | 
Definition at line 38 of file class.ilAccountMail.php.
| 
 | private | 
Definition at line 36 of file class.ilAccountMail.php.
Referenced by areLangVariablesUsedAsFallback().
| ilAccountMail::$target = "" | 
Definition at line 34 of file class.ilAccountMail.php.
Referenced by getTarget().
| ilAccountMail::$u_password = "" | 
Definition at line 20 of file class.ilAccountMail.php.
Referenced by getUserPassword().
| ilAccountMail::$user = "" | 
Definition at line 27 of file class.ilAccountMail.php.