anyone has already written such a datatype?

Author Message

Alessandro Cipriani

Friday 04 June 2004 3:12:29 am

hi all
my user tree is structure as follows:
.i have 3 levels (superadministrator - administrator - user)
.i have also 3 classes (superadmin - admin - usr)
.each level can contain only instances of a class:
- the superadministrator level will contain only superadministrator users
- eccetera

in each administrator and user object i'd like to have a combo that indicates the 'father' user, in order to implement the real company hierarchy

so, as the usr user can be related only to an admin user, i'd like to have, in the 'create new user' section, an attribute like a combo that programmatically retrieves the name (and the id) of each instance of the admin class.

so i need Something similar to the 'selection' datatype, but dynamic

anyone could help?

best regards
alessandro
icq 326-457-502

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 09:39:41
Script start
Timing: Jan 19 2025 09:39:41
Module start 'layout'
Timing: Jan 19 2025 09:39:41
Module start 'content'
Timing: Jan 19 2025 09:39:43
Module end 'content'
Timing: Jan 19 2025 09:39:43
Script end

Main resources:

Total runtime1.3928 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 589.2891152.6406
Module start 'layout' 0.00450.0038 741.929739.4766
Module start 'content' 0.00821.3831 781.4063440.0938
Module end 'content' 1.39130.0014 1,221.50008.1250
Script end 1.3928  1,229.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2186160.0002
Check MTime0.00130.0899160.0001
Mysql Total
Database connection0.00060.040010.0006
Mysqli_queries1.352097.0722460.0294
Looping result0.00050.0326440.0000
Template Total1.357597.520.6788
Template load0.00220.157820.0011
Template processing1.355397.306020.6777
Template load and register function0.00010.006210.0001
states
state_id_array0.00150.106610.0015
state_identifier_array0.00210.149920.0010
Override
Cache load0.00170.1195180.0001
Sytem overhead
Fetch class attribute can translate value0.00120.088510.0012
Fetch class attribute name0.00070.050120.0003
XML
Image XML parsing0.00050.035310.0005
class_abstraction
Instantiating content class attribute0.00000.000220.0000
General
dbfile0.00090.0634160.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs