Table Details

Author Message

ez man

Thursday 03 May 2007 12:47:12 am

Hi
User account information is stored in ezuser table.
Where is firstname,lastname,signature information stored in ezpublish cms?

Silke Fox

Thursday 03 May 2007 2:20:35 am

Hi,

users are handled in the same manner as other content objects in eZ Publish.
So firstname, lastname etc. are stored in the ezcontentobject_attribute table.

Hope that helps.
Silke

ez man

Thursday 03 May 2007 2:39:31 am

Table 'ezcontentobject_attribute' has the following columns:
attribute_original_id int(11)
contentclassattribute_id
contentobject_id int(11)
data_float float
data_int int(11)
data_text longtext
data_type_string
id int(11)
language_code varchar(20)
language_id int(11)
sort_key_int int(11)
sort_key_string varchar(255)
version

Can you tell me where firstname,lastname,signature are stored here?

Silke Fox

Thursday 03 May 2007 3:20:55 am

Have a look at the way content classes work and content object attributes are stored in general.

http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/content_management/the_content_class
http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/content_management/class_attributes
http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/content_management/the_content_object

The user content class is described here:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/content_classes/users/user

All that might look a bit strange at first, but the benefit of this concept is its huge flexibility.

For example, if you want to look up all users' firstnames you can use this SQL statement:

select * from ezcontentobject_attribute where contentclassattribute_id = 8;

You can look up class attribute ids in the admin area at Setup > Classes.
For example http://<your_host>/<your_ez_siteaccess>/class/view/4

I hope this was useful for you to understand eZ Publish' concept of storing object data.
But in general, if you want to change object data per script you should use the appropriate PHP classes and methods rather than plain SQL.

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 15:11:57
Script start
Timing: Jan 18 2025 15:11:57
Module start 'layout'
Timing: Jan 18 2025 15:11:57
Module start 'content'
Timing: Jan 18 2025 15:11:58
Module end 'content'
Timing: Jan 18 2025 15:11:58
Script end

Main resources:

Total runtime1.1300 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 587.7891152.6094
Module start 'layout' 0.00460.0027 740.398439.4141
Module start 'content' 0.00731.1210 779.8125487.1484
Module end 'content' 1.12830.0017 1,266.960912.1953
Script end 1.1299  1,279.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3055160.0002
Check MTime0.00140.1253160.0001
Mysql Total
Database connection0.00050.048610.0005
Mysqli_queries1.071794.8448600.0179
Looping result0.00060.0559580.0000
Template Total1.094296.820.5471
Template load0.00220.190520.0011
Template processing1.092096.640320.5460
Template load and register function0.00020.020710.0002
states
state_id_array0.00250.217310.0025
state_identifier_array0.00160.139420.0008
Override
Cache load0.00190.1639420.0000
Sytem overhead
Fetch class attribute can translate value0.00050.041120.0002
Fetch class attribute name0.00220.197240.0006
XML
Image XML parsing0.00020.021120.0001
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00150.1297100.0001
String conversion0.00000.000740.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
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs