PHP Class UserEmail, glpi

Inheritance: extends Zend_Db_Table
显示文件 Open project: glpi-project/glpi Class Usage Examples

Public Properties

Property Type Description
$auto_message_on_action From CommonDBTM
$dohistory
$items_id
$itemtype From CommonDBChild

Public Methods

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

Method Details

getAllForUser() static public method

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

getDefaultForUser() static public method

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

getJSCodeToAddForItemChild() static public method

static public getJSCodeToAddForItemChild ( $field_name, $child_count_js_var ) : string
$field_name
$child_count_js_var
return string

getNameField() static public method

See also: CommonDBTM::getNameField
static public getNameField ( ) : string
return string

getTypeName() static public method

static public getTypeName ( $nb )

isEmailForUser() static public method

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

post_addItem() public method

public post_addItem ( )

post_deleteFromDB() public method

public post_deleteFromDB ( )

post_updateItem() public method

public post_updateItem ( $history = 1 )

prepareInputForAdd() public method

public prepareInputForAdd ( $input )

showAddEmailButton() static public method

static public showAddEmailButton ( User $user )
$user User

showChildForItemForm() public method

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

showForUser() static public method

Show emails of a user
static public showForUser ( User $user ) : nothing
$user User User object
return 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