Can you create a user content object without a user object?

Author Message

Deane Barker

Thursday 20 November 2008 2:50:05 pm

Working with the PHP API, is there any danger of creating a user as a content class, and never creating the corresponding user account?

I've done this, and they appear under a user group. They have no user account and no password. When I want them to be "enabled," I edit them and add a username and password, and they can log in normally.

This seems to be working, but is there something I'm not considering with it?

Bruce Morrison

Thursday 20 November 2008 5:16:30 pm

Hi Deane

Can't see an issue with it as long as you are creating the content object in a proper eZ way via the API. I assume that the user attribute is marked as not required? Anything in particular you are concerned about?

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 16:12:03
Script start
Timing: Jan 18 2025 16:12:03
Module start 'layout'
Timing: Jan 18 2025 16:12:03
Module start 'content'
Timing: Jan 18 2025 16:12:04
Module end 'content'
Timing: Jan 18 2025 16:12:04
Script end

Main resources:

Total runtime1.0095 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.3047152.6563
Module start 'layout' 0.00480.0028 741.960939.5078
Module start 'content' 0.00751.0006 781.4688526.5781
Module end 'content' 1.00820.0013 1,308.04698.0938
Script end 1.0095  1,316.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3087160.0002
Check MTime0.00130.1250160.0001
Mysql Total
Database connection0.00070.069610.0007
Mysqli_queries0.966795.7529540.0179
Looping result0.00050.0474520.0000
Template Total0.981697.220.4908
Template load0.00280.281320.0014
Template processing0.978796.945920.4894
Template load and register function0.00010.010110.0001
states
state_id_array0.00100.094910.0010
state_identifier_array0.00060.062920.0003
Override
Cache load0.00240.2413130.0002
Sytem overhead
Fetch class attribute can translate value0.00050.049520.0002
Fetch class attribute name0.00110.107940.0003
XML
Image XML parsing0.00090.091920.0005
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00090.0867220.0000
String conversion0.00000.000840.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs