PHP Class UserEmail, glpi

Inheritance: extends Zend_Db_Table
Afficher le fichier Open project: glpi-project/glpi Class Usage Examples

Méthodes publiques

Свойство Type Description
$auto_message_on_action From CommonDBTM
$dohistory
$items_id
$itemtype From CommonDBChild

Méthodes publiques

Méthode 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

Method Details

getAllForUser() static public méthode

Get all emails for user.
static public getAllForUser ( $users_id ) : array
$users_id user ID
Résultat array of emails

getDefaultForUser() static public méthode

Get default email for user. If no default email get first one
static public getDefaultForUser ( $users_id ) : default
$users_id user ID
Résultat default email, empty if no email set

getJSCodeToAddForItemChild() static public méthode

static public getJSCodeToAddForItemChild ( $field_name, $child_count_js_var ) : string
$field_name
$child_count_js_var
Résultat string

getNameField() static public méthode

See also: CommonDBTM::getNameField
static public getNameField ( ) : string
Résultat string

getTypeName() static public méthode

static public getTypeName ( $nb )

isEmailForUser() static public méthode

is an email of the user
static public isEmailForUser ( $users_id, $email ) : boolean
$users_id user ID
$email string email to check user ID
Résultat boolean is this email set for the user ?

post_addItem() public méthode

public post_addItem ( )

post_deleteFromDB() public méthode

public post_deleteFromDB ( )

post_updateItem() public méthode

public post_updateItem ( $history = 1 )

prepareInputForAdd() public méthode

public prepareInputForAdd ( $input )

showAddEmailButton() static public méthode

static public showAddEmailButton ( User $user )
$user User

showChildForItemForm() public méthode

public showChildForItemForm ( $canedit, $field_name, $id )
$canedit
$field_name
$id

showForUser() static public méthode

Show emails of a user
static public showForUser ( User $user ) : nothing
$user User User object
Résultat nothing

Property Details

$auto_message_on_action public_oe property

From CommonDBTM
public $auto_message_on_action

$dohistory public_oe property

public $dohistory

$items_id public_oe static_oe property

public static $items_id

$itemtype public_oe static_oe property

From CommonDBChild
public static $itemtype