Class: I2CE User Form (Development): Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 33: Line 33:
===__construct()===
===__construct()===
Create a new instance of a I2CE_User_Form object. If the username isn't given then it will be determined from the session array.
Create a new instance of a I2CE_User_Form object. If the username isn't given then it will be determined from the session array.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L101 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 101
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L102 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 102
*Signature: public function __construct($form,$username)
*Signature: public function __construct($factory,$form,$username)
*Parameters:
*Parameters:
** [[Class: I2CE_FieldContainer_Factory (Development) | I2CE_FieldContainer_Factory]] $factory
** [http://www.php.net/manual/en/language.types.string.php string ] $form <br/>The name of this form.  Should be 'user'.
** [http://www.php.net/manual/en/language.types.string.php string ] $form <br/>The name of this form.  Should be 'user'.
** [http://www.php.net/manual/en/language.types.string.php string ] $username
** [http://www.php.net/manual/en/language.types.string.php string ] $username
Line 41: Line 42:
===__get()===
===__get()===
Magic method to access user info
Magic method to access user info
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L167 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 167
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L168 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 168
*Signature: public function __get($detail)
*Signature: public function __get($detail)
*Parameters:
*Parameters:
Line 48: Line 49:
===__set()===
===__set()===
Magic method to set user info
Magic method to set user info
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L196 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 196
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L197 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 197
*Signature: public function __set($detail,$value)
*Signature: public function __set($detail,$value)
*Parameters:
*Parameters:
Line 56: Line 57:
===__unset()===
===__unset()===
Magic method to set user info
Magic method to set user info
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L225 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 225
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L226 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 226
*Signature: public function __unset($detail)
*Signature: public function __unset($detail)
*Parameters:
*Parameters:
Line 63: Line 64:
===changePassword()===
===changePassword()===
Change the password for this user. This will update a user's record to change the password in the database.  It checks to make sure the new password matches the confirmation.
Change the password for this user. This will update a user's record to change the password in the database.  It checks to make sure the new password matches the confirmation.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L285 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 285
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L286 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 286
*Signature: public function changePassword($post)
*Signature: public function changePassword($post)
*Parameters:
*Parameters:
Line 69: Line 70:
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]<br/>The message to display back to the user signifying success or failure. @global array
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]<br/>The message to display back to the user signifying success or failure. @global array
===displayName()===
===displayName()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L157 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 157
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L158 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 158
*Signature: public function displayName()
*Signature: public function displayName()
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]<br/>The first initial and last name of this user.
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]<br/>The first initial and last name of this user.
Line 88: Line 89:
===populate()===
===populate()===
Populate the member variables of this object. This will also update the user log to show the latest activity for this login. @param boolean $update_log @global array
Populate the member variables of this object. This will also update the user log to show the latest activity for this login. @param boolean $update_log @global array
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L254 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 254
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L255 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 255
*Signature: public function populate()
*Signature: public function populate()
===save()===
===save()===
Saves the user to the database. This method saves all the user data and updates the access the user has for this system. @global array
Saves the user to the database. This method saves all the user data and updates the access the user has for this system. @global array
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L382 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 382
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L383 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 383
*Signature: public function save()
*Signature: public function save()
===setFromPost()===
===setFromPost()===
Load the member variables from an array The array can contain the keys 'id', 'parent', 'fields'.  The later of which is an array indexed by field names and which contains the values of the field
Load the member variables from an array The array can contain the keys 'id', 'parent', 'fields'.  The later of which is an array indexed by field names and which contains the values of the field
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L307 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 307
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L308 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 308
*Signature: public function setFromPost($post,$populate_on_set_id)
*Signature: public function setFromPost($post,$populate_on_set_id)
*Parameters:
*Parameters:
Line 104: Line 105:
===tryGeneratePassword()===
===tryGeneratePassword()===
Try to generate a new password and assign it to the password and confirm variables.
Try to generate a new password and assign it to the password and confirm variables.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L335 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 335
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L336 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 336
*Signature: public function tryGeneratePassword()
*Signature: public function tryGeneratePassword()
===validate()===
===validate()===
Checks to make sure all the required fields are valid. Checks to make sure the username is unique in the system and that the password matches the confirmed password. @global array
Checks to make sure all the required fields are valid. Checks to make sure the username is unique in the system and that the password matches the confirmed password. @global array
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L361 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 361
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php#L362 i2ce/modules/Forms/modules/UserForm/lib/I2CE_User_Form.php] on line 362
*Signature: public function validate()
*Signature: public function validate()
==Inherited Methods==
==Inherited Methods==
===__isset()===
This public method is inherited from [[Class: I2CE_Form (Development)#__isset() | I2CE_Form->__isset()]]
===addChildForm()===
===addChildForm()===
This public method is inherited from [[Class: I2CE_Form (Development)#addChildForm() | I2CE_Form->addChildForm()]]
This public method is inherited from [[Class: I2CE_Form (Development)#addChildForm() | I2CE_Form->addChildForm()]]
===addField()===
This public method is inherited from [[Class: I2CE_Form (Development)#addField() | I2CE_Form->addField()]]


===cleanup()===
===cleanup()===
This public method is inherited from [[Class: I2CE_Form (Development)#cleanup() | I2CE_Form->cleanup()]]
This public method is inherited from [[Class: I2CE_Form (Development)#cleanup() | I2CE_Form->cleanup()]]
===clearFields()===
This public method is inherited from [[Class: I2CE_Form (Development)#clearFields() | I2CE_Form->clearFields()]]
===current()===
This public method is inherited from [[Class: I2CE_Form (Development)#current() | I2CE_Form->current()]]


===displayField()===
===displayField()===
Line 137: Line 126:
===getAllowedParentForms()===
===getAllowedParentForms()===
This public method is inherited from [[Class: I2CE_Form (Development)#getAllowedParentForms() | I2CE_Form->getAllowedParentForms()]]
This public method is inherited from [[Class: I2CE_Form (Development)#getAllowedParentForms() | I2CE_Form->getAllowedParentForms()]]
===getAttribute()===
This public method is inherited from [[Class: I2CE_Form (Development)#getAttribute() | I2CE_Form->getAttribute()]]


===getChildForms()===
===getChildForms()===
Line 155: Line 141:
===getField()===
===getField()===
This public method is inherited from [[Class: I2CE_Form (Development)#getField() | I2CE_Form->getField()]]
This public method is inherited from [[Class: I2CE_Form (Development)#getField() | I2CE_Form->getField()]]
===getParent()===
This public method is inherited from [[Class: I2CE_Form (Development)#getParent() | I2CE_Form->getParent()]]
===getParentForm()===
This public method is inherited from [[Class: I2CE_Form (Development)#getParentForm() | I2CE_Form->getParentForm()]]
===getParentID()===
This public method is inherited from [[Class: I2CE_Form (Development)#getParentID() | I2CE_Form->getParentID()]]
===getPost()===
This public method is inherited from [[Class: I2CE_Form (Development)#getPost() | I2CE_Form->getPost()]]
===listFields()===
This public method is inherited from [[Class: I2CE_Form (Development)#listFields() | I2CE_Form->listFields()]]
===processDOM()===
This public method is inherited from [[Class: I2CE_Form (Development)#processDOM() | I2CE_Form->processDOM()]]
===reset()===
This public method is inherited from [[Class: I2CE_Form (Development)#reset() | I2CE_Form->reset()]]
===search()===
This public method is inherited from [[Class: I2CE_Form (Development)#search() | I2CE_Form->search()]]
===setDisplayName()===
This public method is inherited from [[Class: I2CE_Form (Development)#setDisplayName() | I2CE_Form->setDisplayName()]]
===setForm()===
This public method is inherited from [[Class: I2CE_Form (Development)#setForm() | I2CE_Form->setForm()]]
===setParent()===
This public method is inherited from [[Class: I2CE_Form (Development)#setParent() | I2CE_Form->setParent()]]
===lookupArray()===
This protected method is inherited from [[Class: I2CE_Form (Development)#lookupArray() | I2CE_Form->lookupArray()]]
===__isset()===
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#__isset() | I2CE_FieldContainer->__isset()]]
===addField()===
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#addField() | I2CE_FieldContainer->addField()]]
===clearFields()===
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#clearFields() | I2CE_FieldContainer->clearFields()]]
===current()===
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#current() | I2CE_FieldContainer->current()]]
===getAttribute()===
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#getAttribute() | I2CE_FieldContainer->getAttribute()]]
===getContainerType()===
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#getContainerType() | I2CE_FieldContainer->getContainerType()]]


===getFieldNames()===
===getFieldNames()===
This public method is inherited from [[Class: I2CE_Form (Development)#getFieldNames() | I2CE_Form->getFieldNames()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#getFieldNames() | I2CE_FieldContainer->getFieldNames()]]
 
===getFormId()===
This public method is inherited from [[Class: I2CE_Form (Development)#getFormId() | I2CE_Form->getFormId()]]


===getHTMLName()===
===getHTMLName()===
This public method is inherited from [[Class: I2CE_Form (Development)#getHTMLName() | I2CE_Form->getHTMLName()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#getHTMLName() | I2CE_FieldContainer->getHTMLName()]]


===getId()===
===getId()===
This public method is inherited from [[Class: I2CE_Form (Development)#getId() | I2CE_Form->getId()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#getId() | I2CE_FieldContainer->getId()]]


===getParent()===
===getLoad()===
This public method is inherited from [[Class: I2CE_Form (Development)#getParent() | I2CE_Form->getParent()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#getLoad() | I2CE_FieldContainer->getLoad()]]
 
===getMeta()===
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#getMeta() | I2CE_FieldContainer->getMeta()]]


===getParentForm()===
===getName()===
This public method is inherited from [[Class: I2CE_Form (Development)#getParentForm() | I2CE_Form->getParentForm()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#getName() | I2CE_FieldContainer->getName()]]


===getParentID()===
===getNameId()===
This public method is inherited from [[Class: I2CE_Form (Development)#getParentID() | I2CE_Form->getParentID()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#getNameId() | I2CE_FieldContainer->getNameId()]]


===getQueryDisplay()===
===getQueryDisplay()===
This public method is inherited from [[Class: I2CE_Form (Development)#getQueryDisplay() | I2CE_Form->getQueryDisplay()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#getQueryDisplay() | I2CE_FieldContainer->getQueryDisplay()]]


===getQueryFields()===
===getQueryFields()===
This public method is inherited from [[Class: I2CE_Form (Development)#getQueryFields() | I2CE_Form->getQueryFields()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#getQueryFields() | I2CE_FieldContainer->getQueryFields()]]


===getQueryString()===
===getQueryString()===
This public method is inherited from [[Class: I2CE_Form (Development)#getQueryString() | I2CE_Form->getQueryString()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#getQueryString() | I2CE_FieldContainer->getQueryString()]]


===hasAttribute()===
===hasAttribute()===
This public method is inherited from [[Class: I2CE_Form (Development)#hasAttribute() | I2CE_Form->hasAttribute()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#hasAttribute() | I2CE_FieldContainer->hasAttribute()]]


===hasInvalid()===
===hasInvalid()===
This public method is inherited from [[Class: I2CE_Form (Development)#hasInvalid() | I2CE_Form->hasInvalid()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#hasInvalid() | I2CE_FieldContainer->hasInvalid()]]
 
===hasMeta()===
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#hasMeta() | I2CE_FieldContainer->hasMeta()]]
 
===isValid()===
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#isValid() | I2CE_FieldContainer->isValid()]]


===key()===
===key()===
This public method is inherited from [[Class: I2CE_Form (Development)#key() | I2CE_Form->key()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#key() | I2CE_FieldContainer->key()]]
 
===listFields()===
This public method is inherited from [[Class: I2CE_Form (Development)#listFields() | I2CE_Form->listFields()]]


===load()===
===load()===
This public method is inherited from [[Class: I2CE_Form (Development)#load() | I2CE_Form->load()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#load() | I2CE_FieldContainer->load()]]


===next()===
===next()===
This public method is inherited from [[Class: I2CE_Form (Development)#next() | I2CE_Form->next()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#next() | I2CE_FieldContainer->next()]]
 
===processDOM()===
This public method is inherited from [[Class: I2CE_Form (Development)#processDOM() | I2CE_Form->processDOM()]]


===removeField()===
===removeField()===
This public method is inherited from [[Class: I2CE_Form (Development)#removeField() | I2CE_Form->removeField()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#removeField() | I2CE_FieldContainer->removeField()]]
 
===reset()===
This public method is inherited from [[Class: I2CE_Form (Development)#reset() | I2CE_Form->reset()]]


===rewind()===
===rewind()===
This public method is inherited from [[Class: I2CE_Form (Development)#rewind() | I2CE_Form->rewind()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#rewind() | I2CE_FieldContainer->rewind()]]
 
===search()===
This public method is inherited from [[Class: I2CE_Form (Development)#search() | I2CE_Form->search()]]


===setAttribute()===
===setAttribute()===
This public method is inherited from [[Class: I2CE_Form (Development)#setAttribute() | I2CE_Form->setAttribute()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#setAttribute() | I2CE_FieldContainer->setAttribute()]]


===setDisplayName()===
===setId()===
This public method is inherited from [[Class: I2CE_Form (Development)#setDisplayName() | I2CE_Form->setDisplayName()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#setId() | I2CE_FieldContainer->setId()]]


===setForm()===
===setMeta()===
This public method is inherited from [[Class: I2CE_Form (Development)#setForm() | I2CE_Form->setForm()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#setMeta() | I2CE_FieldContainer->setMeta()]]


===setId()===
===setName()===
This public method is inherited from [[Class: I2CE_Form (Development)#setId() | I2CE_Form->setId()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#setName() | I2CE_FieldContainer->setName()]]
 
===setParent()===
This public method is inherited from [[Class: I2CE_Form (Development)#setParent() | I2CE_Form->setParent()]]


===valid()===
===valid()===
This public method is inherited from [[Class: I2CE_Form (Development)#valid() | I2CE_Form->valid()]]
This public method is inherited from [[Class: I2CE_FieldContainer (Development)#valid() | I2CE_FieldContainer->valid()]]


===addFormFields()===
===addFields()===
This protected method is inherited from [[Class: I2CE_Form (Development)#addFormFields() | I2CE_Form->addFormFields()]]
This protected method is inherited from [[Class: I2CE_FieldContainer (Development)#addFields() | I2CE_FieldContainer->addFields()]]


===getFormFieldsData()===
===getAttributes()===
This protected method is inherited from [[Class: I2CE_Form (Development)#getFormFieldsData() | I2CE_Form->getFormFieldsData()]]
This protected method is inherited from [[Class: I2CE_FieldContainer (Development)#getAttributes() | I2CE_FieldContainer->getAttributes()]]
 
===lookupArray()===
This protected method is inherited from [[Class: I2CE_Form (Development)#lookupArray() | I2CE_Form->lookupArray()]]


===_hasMethod()===
===_hasMethod()===
Line 251: Line 279:
===$children===
===$children===
Theis public variable is inherited from [[Class: I2CE_Form (Development)#$children | I2CE_Form->$children]]
Theis public variable is inherited from [[Class: I2CE_Form (Development)#$children | I2CE_Form->$children]]
===$fields===
Theis protected variable is inherited from [[Class: I2CE_Form (Development)#$fields | I2CE_Form->$fields]]


===$parent===
===$parent===
Theis protected variable is inherited from [[Class: I2CE_Form (Development)#$parent | I2CE_Form->$parent]]
Theis protected variable is inherited from [[Class: I2CE_Form (Development)#$parent | I2CE_Form->$parent]]


===$id===
===$parent_forms===
Theis protected variable is inherited from [[Class: I2CE_Form (Development)#$id | I2CE_Form->$id]]
Theis protected variable is inherited from [[Class: I2CE_Form (Development)#$parent_forms | I2CE_Form->$parent_forms]]
 
===$name===
Theis protected variable is inherited from [[Class: I2CE_FieldContainer (Development)#$name | I2CE_FieldContainer->$name]]
 
===$display_name===
Theis protected variable is inherited from [[Class: I2CE_FieldContainer (Development)#$display_name | I2CE_FieldContainer->$display_name]]
 
===$fields===
Theis protected variable is inherited from [[Class: I2CE_FieldContainer (Development)#$fields | I2CE_FieldContainer->$fields]]


===$attributes===
===$attributes===
Theis protected variable is inherited from [[Class: I2CE_Form (Development)#$attributes | I2CE_Form->$attributes]]
Theis protected variable is inherited from [[Class: I2CE_FieldContainer (Development)#$attributes | I2CE_FieldContainer->$attributes]]


===$parent_forms===
===$id===
Theis protected variable is inherited from [[Class: I2CE_Form (Development)#$parent_forms | I2CE_Form->$parent_forms]]
Theis protected variable is inherited from [[Class: I2CE_FieldContainer (Development)#$id | I2CE_FieldContainer->$id]]
 
===$factory===
Theis protected variable is inherited from [[Class: I2CE_FieldContainer (Development)#$factory | I2CE_FieldContainer->$factory]]
==Inherited Fuzzy Methods==
==Inherited Fuzzy Methods==
===isNumeric()===
===isNumeric()===
Line 290: Line 327:
===generateWhereClause()===
===generateWhereClause()===
This method is inherited from [[Class: I2CE_Form (Development)#generateWhereClause() | I2CE_Form->generateWhereClause()]]
This method is inherited from [[Class: I2CE_Form (Development)#generateWhereClause() | I2CE_Form->generateWhereClause()]]
===processLimit()===
This method is inherited from [[Class: I2CE_Form (Development)#processLimit() | I2CE_Form->processLimit()]]
===getDisplayedExistingLimit()===
This method is inherited from [[Class: I2CE_Form (Development)#getDisplayedExistingLimit() | I2CE_Form->getDisplayedExistingLimit()]]


===isComponentized()===
===isComponentized()===

Revision as of 07:59, 3 August 2010


This article describes the class I2CE_User_Form .

Object for dealing with system users. This class uses the interface to handle editing of users from within the system as well as handles role access for pages.

Form Fields

This class is a form class and provides the following form fields

username

The form field username is implemented by STRING_LINE

password

The form field password is implemented by STRING_PASS

confirm

The form field confirm is implemented by STRING_PASS

role

The form field role is implemented by MAP

generate_password

The form field generate_password is implemented by YESNO

Variables

$user

The I2CE_User which makes up this form protected I2CE_User $user

$allowedDetails

of string the allowed details

Methods

__construct()

Create a new instance of a I2CE_User_Form object. If the username isn't given then it will be determined from the session array.

__get()

Magic method to access user info

__set()

Magic method to set user info

__unset()

Magic method to set user info

changePassword()

Change the password for this user. This will update a user's record to change the password in the database. It checks to make sure the new password matches the confirmation.

displayName()

getRoleNameFromShortName()

Get the display name associated to a role's shortname

getTrickleUpFromShortName()

Returns the role trickle up from the shortname

populate()

Populate the member variables of this object. This will also update the user log to show the latest activity for this login. @param boolean $update_log @global array

save()

Saves the user to the database. This method saves all the user data and updates the access the user has for this system. @global array

setFromPost()

Load the member variables from an array The array can contain the keys 'id', 'parent', 'fields'. The later of which is an array indexed by field names and which contains the values of the field

tryGeneratePassword()

Try to generate a new password and assign it to the password and confirm variables.

validate()

Checks to make sure all the required fields are valid. Checks to make sure the username is unique in the system and that the password matches the confirmed password. @global array

Inherited Methods

addChildForm()

This public method is inherited from I2CE_Form->addChildForm()

cleanup()

This public method is inherited from I2CE_Form->cleanup()

displayField()

This public method is inherited from I2CE_Form->displayField()

form()

This public method is inherited from I2CE_Form->form()

getAllowedParentForms()

This public method is inherited from I2CE_Form->getAllowedParentForms()

getChildForms()

This public method is inherited from I2CE_Form->getChildForms()

getChildFormsByForm()

This public method is inherited from I2CE_Form->getChildFormsByForm()

getChildren()

This public method is inherited from I2CE_Form->getChildren()

getDisplayName()

This public method is inherited from I2CE_Form->getDisplayName()

getField()

This public method is inherited from I2CE_Form->getField()

getParent()

This public method is inherited from I2CE_Form->getParent()

getParentForm()

This public method is inherited from I2CE_Form->getParentForm()

getParentID()

This public method is inherited from I2CE_Form->getParentID()

getPost()

This public method is inherited from I2CE_Form->getPost()

listFields()

This public method is inherited from I2CE_Form->listFields()

processDOM()

This public method is inherited from I2CE_Form->processDOM()

reset()

This public method is inherited from I2CE_Form->reset()

search()

This public method is inherited from I2CE_Form->search()

setDisplayName()

This public method is inherited from I2CE_Form->setDisplayName()

setForm()

This public method is inherited from I2CE_Form->setForm()

setParent()

This public method is inherited from I2CE_Form->setParent()

lookupArray()

This protected method is inherited from I2CE_Form->lookupArray()

__isset()

This public method is inherited from I2CE_FieldContainer->__isset()

addField()

This public method is inherited from I2CE_FieldContainer->addField()

clearFields()

This public method is inherited from I2CE_FieldContainer->clearFields()

current()

This public method is inherited from I2CE_FieldContainer->current()

getAttribute()

This public method is inherited from I2CE_FieldContainer->getAttribute()

getContainerType()

This public method is inherited from I2CE_FieldContainer->getContainerType()

getFieldNames()

This public method is inherited from I2CE_FieldContainer->getFieldNames()

getHTMLName()

This public method is inherited from I2CE_FieldContainer->getHTMLName()

getId()

This public method is inherited from I2CE_FieldContainer->getId()

getLoad()

This public method is inherited from I2CE_FieldContainer->getLoad()

getMeta()

This public method is inherited from I2CE_FieldContainer->getMeta()

getName()

This public method is inherited from I2CE_FieldContainer->getName()

getNameId()

This public method is inherited from I2CE_FieldContainer->getNameId()

getQueryDisplay()

This public method is inherited from I2CE_FieldContainer->getQueryDisplay()

getQueryFields()

This public method is inherited from I2CE_FieldContainer->getQueryFields()

getQueryString()

This public method is inherited from I2CE_FieldContainer->getQueryString()

hasAttribute()

This public method is inherited from I2CE_FieldContainer->hasAttribute()

hasInvalid()

This public method is inherited from I2CE_FieldContainer->hasInvalid()

hasMeta()

This public method is inherited from I2CE_FieldContainer->hasMeta()

isValid()

This public method is inherited from I2CE_FieldContainer->isValid()

key()

This public method is inherited from I2CE_FieldContainer->key()

load()

This public method is inherited from I2CE_FieldContainer->load()

next()

This public method is inherited from I2CE_FieldContainer->next()

removeField()

This public method is inherited from I2CE_FieldContainer->removeField()

rewind()

This public method is inherited from I2CE_FieldContainer->rewind()

setAttribute()

This public method is inherited from I2CE_FieldContainer->setAttribute()

setId()

This public method is inherited from I2CE_FieldContainer->setId()

setMeta()

This public method is inherited from I2CE_FieldContainer->setMeta()

setName()

This public method is inherited from I2CE_FieldContainer->setName()

valid()

This public method is inherited from I2CE_FieldContainer->valid()

addFields()

This protected method is inherited from I2CE_FieldContainer->addFields()

getAttributes()

This protected method is inherited from I2CE_FieldContainer->getAttributes()

_hasMethod()

This public method is inherited from I2CE_Fuzzy->_hasMethod()

Inherited Variables

$children

Theis public variable is inherited from I2CE_Form->$children

$parent

Theis protected variable is inherited from I2CE_Form->$parent

$parent_forms

Theis protected variable is inherited from I2CE_Form->$parent_forms

$name

Theis protected variable is inherited from I2CE_FieldContainer->$name

$display_name

Theis protected variable is inherited from I2CE_FieldContainer->$display_name

$fields

Theis protected variable is inherited from I2CE_FieldContainer->$fields

$attributes

Theis protected variable is inherited from I2CE_FieldContainer->$attributes

$id

Theis protected variable is inherited from I2CE_FieldContainer->$id

$factory

Theis protected variable is inherited from I2CE_FieldContainer->$factory

Inherited Fuzzy Methods

isNumeric()

This method is inherited from I2CE_Form->isNumeric()

getLimitStyles()

This method is inherited from I2CE_Form->getLimitStyles()

checkLimit()

This method is inherited from I2CE_Form->checkLimit()

checkWhereClause()

This method is inherited from I2CE_Form->checkWhereClause()

createCheckFunction()

This method is inherited from I2CE_Form->createCheckFunction()

createCheckLimitString()

This method is inherited from I2CE_Form->createCheckLimitString()

generateLimit()

This method is inherited from I2CE_Form->generateLimit()

generateWhereClause()

This method is inherited from I2CE_Form->generateWhereClause()

isComponentized()

This method is inherited from I2CE_Form->isComponentized()

addChild()

This method is inherited from I2CE_Form->addChild()

getChildIds()

This method is inherited from I2CE_Form->getChildIds()

getStorage()

This method is inherited from I2CE_Form->getStorage()

isWritable()

This method is inherited from I2CE_Form->isWritable()

populateChild()

This method is inherited from I2CE_Form->populateChild()

populateChildren()

This method is inherited from I2CE_Form->populateChildren()

populateFirst()

This method is inherited from I2CE_Form->populateFirst()

populateHistory()

This method is inherited from I2CE_Form->populateHistory()

populateLast()

This method is inherited from I2CE_Form->populateLast()

delete()

This method is inherited from I2CE_Form->delete()

setChangeType()

This method is inherited from I2CE_Form->setChangeType()

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()