Public Member Functions | Public Attributes | Protected Attributes

User Class Reference

Inheritance diagram for User:
BEAppModel AppModel

List of all members.

Public Member Functions

 useridValidation ($values)
 passwordValidation (array &$userData)
 unbindGroups ()
 rebindGroups ()
 compact (&$user, $keepGroupsIds=false)
 Compact and reformat result id => ; passwd => ; realname => ; userid => ; groups => array({1..N} nomi_grupppi) : UserProperty => array().
 getUsersToNotify ($conditions)
 afterFind ($results)
 beforeValidate ()
 beforeSave ()
 afterSave ()
 Salva i dati delle associazioni tipo hasMany.
 beforeDelete ()
 getGroups ($id=null)
 Returns a list of Groups User belongs to.
 findCardId ($userid=null)
 get associated card id

Public Attributes

 $validate
 $externalServiceValidate
 $hasAndBelongsToMany = array('Group')
 $hasMany

Protected Attributes

 $modelBindings

Detailed Description

Version:
$Revision$ $LastChangedBy$ $LastChangedDate$

$Id$

Definition at line 31 of file user.php.


Member Function Documentation

User::compact ( &$  user,
keepGroupsIds = false 
)

Compact and reformat result id => ; passwd => ; realname => ; userid => ; groups => array({1..N} nomi_grupppi) : UserProperty => array().

Parameters:
array $user

Definition at line 122 of file user.php.

User::findCardId ( userid = null  ) 

get associated card id

If a $userid is specified, it returns the associated Card Object Id (if it exists) If a $userid is not found, or a related Card is not found, it returns FALSE

Parameters:
int|string $userid an user id or userid
Returns:
int|boolean

Definition at line 366 of file user.php.

User::getGroups ( id = null  ) 

Returns a list of Groups User belongs to.

Parameters:
int $id User's ID (currently loaded user if omitted).
Returns:
array ID-name list of Groups User belongs to.

Definition at line 346 of file user.php.


Member Data Documentation

User::$externalServiceValidate
Initial value:
 array(
        'userid' => array(
            'rule' => 'notEmpty'
        ),
        'email' => array(
            'rule' => 'email',
            'allowEmpty' => true
        )
    )

Definition at line 58 of file user.php.

User::$hasMany
Initial value:
 array(
        'Permission' =>
            array(
                'className'     => 'Permission',
                'condition'     => "Permission.switch = 'user' ",
                'fields'        => 'Permission.object_id, Permission.switch, Permission.flag',
                'foreignKey'    => 'id',
                'dependent'     => true
            ),
        'ObjectUser',
        'UserProperty'
    )

Definition at line 76 of file user.php.

User::$modelBindings [protected]
Initial value:
 array(
        'detailed' =>  array('Group', 'ObjectUser', 'Permission', 'UserProperty'),
        'default' => array('Group', 'ObjectUser', 'UserProperty'),
        'minimum' => array()
    )

Reimplemented from BEAppModel.

Definition at line 68 of file user.php.

User::$validate
Initial value:
 array(
        'userid' => array(
            'useridRule1' => array(
                'rule' => 'notEmpty',
                'message' => 'User ID can not be empty',
            ),
            'useridRule2' => array(
                'rule' => array('minLength', 2),
                'message' => 'User ID must be at least 2 (two) characters long',
            ),
            'useridRule3' => array(
                'rule' => 'useridValidation',
                'message' => 'User ID can not contain illegal characters',
            ),
        ),
        'passwd' => array(
            'rule' => 'notEmpty',
        ),
        'email' => array(
            'rule' => 'email',
            'allowEmpty' => true,
        )
    )

Definition at line 34 of file user.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:47 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus