Best way to extend user class?

Author Message

Jerry Jalava

Wednesday 06 August 2003 12:32:17 pm

Hi,
What is the best way to extend user class with more registration info?

I need my registration form to be like this:
- First time that user registers, only email and password is required
- When he logs in, he can change his account info that has fields like Nick (used in forums), First name, Last name, Address, Phone, photo, etc...

Should I make it with classes? Can I put them all in to the user class? Or should I make own module for it?

Regards,
Jerry

Vincent Saulnier

Tuesday 23 September 2003 1:41:55 pm

eZ Crew...
Do you have an idea on this one?

--
Vincent

Bjørn Kaarstein

Wednesday 24 September 2003 2:43:56 am

It is possible just to extend the user class, or just make a new user class.

Just like you say - When a user registers, you only display email and password. When a user is logged in, you can display the rest of the fields.

Regards Bjørn

Vincent Saulnier

Wednesday 24 September 2003 6:21:50 am

But the user still can't change is own profile...
What can we do about that?

--
Vincent

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 18 2025 20:50:19
Script start
Timing: Jan 18 2025 20:50:19
Module start 'layout'
Timing: Jan 18 2025 20:50:19
Module start 'content'
Timing: Jan 18 2025 20:50:20
Module end 'content'
Timing: Jan 18 2025 20:50:20
Script end

Main resources:

Total runtime1.2503 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 587.9141152.6250
Module start 'layout' 0.00530.0025 740.539139.4453
Module start 'content' 0.00781.2412 779.9844514.6406
Module end 'content' 1.24900.0013 1,294.62508.1641
Script end 1.2503  1,302.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2508160.0002
Check MTime0.00140.1125160.0001
Mysql Total
Database connection0.00080.064210.0008
Mysqli_queries1.207796.5912620.0195
Looping result0.00060.0453600.0000
Template Total1.222497.820.6112
Template load0.00220.177620.0011
Template processing1.220197.588520.6101
Template load and register function0.00020.013710.0002
states
state_id_array0.00090.072110.0009
state_identifier_array0.00080.060920.0004
Override
Cache load0.00190.1517250.0001
Sytem overhead
Fetch class attribute can translate value0.00060.047530.0002
Fetch class attribute name0.00110.089640.0003
XML
Image XML parsing0.00030.024530.0001
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00060.0504100.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/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: 21
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs