Class User

Description

An implementation of ActiveRecord

An implementation of ActiveRecord

  • author: CHNM
  • version: $Id$
  • copyright: Center for History and New Media, 2007-2008

Located in /application/models/User.php (line 16)

Omeka_Record
   |
   --User
Class Constant Summary
Variable Summary
 mixed $active
 mixed $entity_id
 mixed $password
 mixed $role
 mixed $username
 mixed $_related
Method Summary
 void afterDelete ()
 void beforeSave ()
 void beforeSaveForm ( $post)
 void changePassword ( $new1,  $new2,  $old)
 void filterInput ( $post)
 void generatePassword ( $length)
 void getEntity ()
 void processEntity ( &$post)
 void setFromPost ( $post)
 void _validate ()
Variables
mixed $active = '0' (line 20)
  • access: public
mixed $entity_id (line 22)
  • access: public
mixed $password (line 19)
  • access: public
mixed $role (line 21)
  • access: public
mixed $username (line 18)
  • access: public
mixed $_related = array('Entity'=>'getEntity') (line 29)
  • access: protected

Redefinition of:
Omeka_Record::$_related
Would be declared like thus: array $_related = array('Sections'=>'loadSections'), where key is a cacheable property and value is a callback to obtain it. used by self::__get() to automatically obtain/cache necessary elements.

Inherited Variables

Inherited from Omeka_Record

Omeka_Record::$id
Omeka_Record::$_cache
Omeka_Record::$_db
Omeka_Record::$_errors
Omeka_Record::$_mixins
Methods
afterDelete (line 280)
  • access: protected
void afterDelete ()

Redefinition of:
Omeka_Record::afterDelete()
beforeSave (line 36)
  • access: protected
void beforeSave ()

Redefinition of:
Omeka_Record::beforeSave()
beforeSaveForm (line 56)
  • access: protected
void beforeSaveForm ( $post)
  • $post

Redefinition of:
Omeka_Record::beforeSaveForm()
changePassword (line 227)
  • access: public
void changePassword ( $new1,  $new2,  $old)
  • $new1
  • $new2
  • $old
filterInput (line 85)
  • access: protected
void filterInput ( $post)
  • $post

Redefinition of:
Omeka_Record::filterInput()
generatePassword (line 289)
  • access: protected
void generatePassword ( $length)
  • $length
getEntity (line 31)
  • access: public
void getEntity ()
processEntity (line 255)
  • access: protected
void processEntity ( &$post)
  • &$post
setFromPost (line 108)
  • access: public
void setFromPost ( $post)
  • $post

Redefinition of:
Omeka_Record::setFromPost()
Sets the record from a from a form post Subclasses can unset post variables before the record set.
_validate (line 117)
  • access: protected
void _validate ()

Redefinition of:
Omeka_Record::_validate()

Inherited Methods

Inherited From Omeka_Record

 Omeka_Record::__construct()
 Omeka_Record::addError()
 Omeka_Record::addErrorsFrom()
 Omeka_Record::addToCache()
 Omeka_Record::afterDelete()
 Omeka_Record::afterInsert()
 Omeka_Record::afterSave()
 Omeka_Record::afterSaveForm()
 Omeka_Record::afterUpdate()
 Omeka_Record::afterValidate()
 Omeka_Record::beforeDelete()
 Omeka_Record::beforeInsert()
 Omeka_Record::beforeSave()
 Omeka_Record::beforeSaveForm()
 Omeka_Record::beforeUpdate()
 Omeka_Record::beforeValidate()
 Omeka_Record::construct()
 Omeka_Record::delegateToMixins()
 Omeka_Record::delete()
 Omeka_Record::exists()
 Omeka_Record::fieldIsUnique()
 Omeka_Record::filterInput()
 Omeka_Record::firePlugin()
 Omeka_Record::forceSave()
 Omeka_Record::getCached()
 Omeka_Record::getDb()
 Omeka_Record::getErrors()
 Omeka_Record::getTable()
 Omeka_Record::hasErrors()
 Omeka_Record::isValid()
 Omeka_Record::lock()
 Omeka_Record::offsetExists()
 Omeka_Record::offsetGet()
 Omeka_Record::offsetSet()
 Omeka_Record::offsetUnset()
 Omeka_Record::runCallbacks()
 Omeka_Record::save()
 Omeka_Record::saveForm()
 Omeka_Record::setArray()
 Omeka_Record::setFromPost()
 Omeka_Record::toArray()
 Omeka_Record::userHasPermission()
 Omeka_Record::validate()
 Omeka_Record::_delete()
 Omeka_Record::_initializeMixins()
 Omeka_Record::_validate()
 Omeka_Record::__call()
 Omeka_Record::__clone()
 Omeka_Record::__destruct()
 Omeka_Record::__get()
Class Constants
PASSWORD_MAX_LENGTH = 40 (line 27)
PASSWORD_MIN_LENGTH = 6 (line 26)
USERNAME_MAX_LENGTH = 30 (line 25)
USERNAME_MIN_LENGTH = 1 (line 24)

Documentation generated on Thu, 15 Oct 2009 15:41:39 -0400 by phpDocumentor 1.4.2