ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilAccountMail. More...
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 346 of file class.ilAccountMail.php.
ilAccountMail::areLangVariablesUsedAsFallback | ( | ) |
Definition at line 53 of file class.ilAccountMail.php.
References $lang_variables_as_fallback.
Referenced by send().
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().
ilAccountMail::getUserPassword | ( | ) |
get user password
public
Definition at line 75 of file class.ilAccountMail.php.
References $u_password.
Referenced by replacePlaceholders().
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().
ilAccountMail::replacePlaceholders | ( | $a_string, | |
& | $a_user, | ||
$a_amail, | |||
$a_lang | |||
) |
Definition at line 247 of file class.ilAccountMail.php.
References $_GET, $ilSetting, ilLanguage\_lookupEntry(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilDatePresentation\formatPeriod(), getUserPassword(), and IL_CAL_UNIX.
Referenced by send().
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(), ilDatePresentation\formatPeriod(), getUser(), IL_CAL_UNIX, readAccountMail(), and replacePlaceholders().
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.