Property | Type | Description | |
---|---|---|---|
$auto_message_on_action | From CommonDBTM | ||
$dohistory | |||
$items_id | |||
$itemtype | From CommonDBChild |
Method | Description | |
---|---|---|
getAllForUser ( $users_id ) : array | Get all emails for user. | |
getDefaultForUser ( $users_id ) : default | Get default email for user. If no default email get first one | |
getJSCodeToAddForItemChild ( $field_name, $child_count_js_var ) : string | ||
getNameField ( ) : string | ||
getTypeName ( $nb ) | ||
isEmailForUser ( $users_id, $email ) : boolean | is an email of the user | |
post_addItem ( ) | ||
post_deleteFromDB ( ) | ||
post_updateItem ( $history = 1 ) | ||
prepareInputForAdd ( $input ) | ||
showAddEmailButton ( User $user ) | ||
showChildForItemForm ( $canedit, $field_name, $id ) | ||
showForUser ( User $user ) : nothing | Show emails of a user |
static public getAllForUser ( $users_id ) : array | ||
$users_id | user ID | |
return | array | of emails |
static public getDefaultForUser ( $users_id ) : default | ||
$users_id | user ID | |
return | default | email, empty if no email set |
static public getJSCodeToAddForItemChild ( $field_name, $child_count_js_var ) : string | ||
$field_name | ||
$child_count_js_var | ||
return | string |
static public isEmailForUser ( $users_id, $email ) : boolean | ||
$users_id | user ID | |
string email to check user ID | ||
return | boolean | is this email set for the user ? |
static public showAddEmailButton ( User $user ) | ||
$user | User |
public showChildForItemForm ( $canedit, $field_name, $id ) | ||
$canedit | ||
$field_name | ||
$id |
static public showForUser ( User $user ) : nothing | ||
$user | User | User object |
return | nothing |