Documentation for class user (inherits from generic_acl):


Properties:

name type default params representant foreign foreign_prop position
id CO_INTEGER SEQUENCE READONLY=1;HIDDEN=1 0 0
version CO_INTEGER 0 READONLY=1;HIDDEN=1 0 0
deleted CO_INTEGER 0 READONLY=1;HIDDEN=1 0 0
inherits_acl CO_INTEGER 1 HIDDEN=1;READONLY=1 0 50
id_role CO_INTEGER 0 READONLY=1; EXTRA_FILTER="id_catalog_type|=|1"; 1 role id 100
login CO_STRING '' 1 200
passwd CO_STRING '' 0 200
name CO_STRING '' 1 200
description CO_STRING '' 1 200

Methods:


method update
description: This method updates one prop of one object. Sends action CO_OP_UPDATE. If id_role is being updated,
description: wrapper role of this user is moved to new parent role.
description: WARNING: this code assumes that: 1. every user has its wrapper role; 2. id_item uniquely defines role (at least for id_item=some id of user).
parameters:

par_area
type CO_STRING

par_class
type CO_STRING

par_id
type CO_INTEGER

version
description: Version of object to be changed this must be current version in database. If version = -1 than it is not used. Default value is -1.
type CO_INTEGER

par_prop
description: Name of the prop to be updated
type CO_STRING

new_value
description: New value for prop. All values are passed as CO_STRING type!
type CO_STRING


method create
description: this method creates user and sets ACL to allow changing of acls to active role
parameters:

par_area
type CO_STRING

par_class
type CO_STRING

par_id
type CO_INTEGER

callback
type CO_STRING

create_params
description: this is array of additional parameters that we can pass to target class to create object
type CO_ARRAY_OF_STRINGS

dont_set_acl
description: If this param is set to 1 we do not set ACL for __PERMISSION_CHANGE_ACL for created object
type CO_INTEGER


method changePasswd
parameters:

par_area
type CO_STRING

par_class
type CO_STRING

par_id
type CO_INTEGER

passwd_old
type CO_STRING

passwd_new
type CO_STRING