Class AuthorizationUserXDO

Description

Implements interfaces:

XDO for managing a SAT Users

This XDO is to be used in conjunction with AuthenticationBackendRDBMS and AuthorizationUserRDBMS. If the backend is not used as password checker the 'password' property will have no affect.

Type: sat.user

Properties: 'uid' (int, ro) - Numeric User ID 'uname' (string, rw) - Username 'password' (password, rw) - Password

Default index: uid

'password' is a magic property, setting it will hash the given password using Hash reading it always returns a dummy value ('********').

Located in /phpsatk/local/org.eenterphace.sat.authorization.xdos/xdo.user.php (line 49)

XDODataObject
   |
   --XDODataObjectDBRow
      |
      --AuthorizationUserXDO
Method Summary
string getID ()
string getPassword ()
void handleEvent (XDOObjectEvent $event)
void register ()
string resolveItemID (XDODataObject $object)
void setPassword (string $value)
Variables
Methods
getID (line 56)

Get object type id

  • access: public
string getID ()

Redefinition of:
XDODataObject::getID()
Gets the object ID/type identifier of this object
getPassword (line 122)

Overloaded password property getter

Always returns '********' (8 stars)

  • access: public
string getPassword ()
handleEvent (line 106)

Handles event

For the moment this object will react on setting a 'password' property on whatever object in this collection. Assumes that this password will already be hashed (what is wrong, but will be handled correctly when having a generic password object).

  • access: public
  • todo: Integrate with a generic user password pseudo object
void handleEvent (XDOObjectEvent $event)
register (line 81)

Registers this object's properties

  • access: protected
void register ()

Redefinition of:
XDODataObject::register()
Registers this objects properties
resolveItemID (line 68)

Resolves the object identifier using a parent object

If the parent object has a property named uid that will be used.

  • access: public
string resolveItemID (XDODataObject $object)
setPassword (line 133)

Overloaded password

Will hash the given password using the Hash mechanism.

  • access: public
void setPassword (string $value)
  • string $value: Password to set

Inherited Methods

Inherited From XDODataObjectDBRow

XDODataObjectDBRow::create()
XDODataObjectDBRow::delete()
XDODataObjectDBRow::fetch()
XDODataObjectDBRow::initialize()
XDODataObjectDBRow::prepare()
XDODataObjectDBRow::registerField()
XDODataObjectDBRow::update()

Inherited From XDODataObject

XDODataObject::__construct()
XDODataObject::addChild()
XDODataObject::addChildren()
XDODataObject::commit()
XDODataObject::delete()
XDODataObject::exists()
XDODataObject::fetch()
XDODataObject::getChild()
XDODataObject::getChildren()
XDODataObject::getCollection()
XDODataObject::getFieldHint()
XDODataObject::getID()
XDODataObject::getItemID()
XDODataObject::getParent()
XDODataObject::getProperty()
XDODataObject::getPropertyAccess()
XDODataObject::hasChildren()
XDODataObject::initialize()
XDODataObject::pushEvent()
XDODataObject::register()
XDODataObject::registerProperty()
XDODataObject::remove()
XDODataObject::setDelegate()
XDODataObject::setParent()
XDODataObject::update()
XDODataObject::__get()
XDODataObject::__isset()
XDODataObject::__set()
Class Constants

Inherited Constants

Inherited from XDODataObjectDBRow

Documentation generated on Mon, 21 May 2007 10:35:32 +0200 by phpDocumentor 1.3.0RC5