Changing users group in module

Author Message

Jerry Jalava

Thursday 18 March 2004 4:36:37 am

Hi,

Could someone tell me what would be the best solution to change the users group to other inside own module?
I have few thoughts how this could be done, but would like to get some other opinions also. So if you have any ideas or have already done it yourself, please post here some info about the process. :)

I think the easiest way to explain what I need is that, I want to change "ez objects" (user) "parent_node" (user group) to something else inside my own module without the user itself interacting with the process.

Regards,
Jerry

Bruce Morrison

Thursday 18 March 2004 4:33:54 pm

Hi Jerry

IS this something that you want to do just in your module or is something you want to be a permanent change (i.e. actually effecting the objects in the database)?

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

Jerry Jalava

Friday 19 March 2004 2:23:21 am

Hi Bruce,

Yes, this is something I want to do in my module. And I want the change to be permanent also.

So I just need to change users groupid after he/she has done something in my module. Right now, the only thing I'm missing is the one function that would do this change...

Regards,
Jerry

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

Main resources:

Total runtime0.7994 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0040 589.0469152.6250
Module start 'layout' 0.00400.0025 741.671939.4453
Module start 'content' 0.00650.7917 781.1172532.7813
Module end 'content' 0.79830.0011 1,313.898412.4766
Script end 0.7994  1,326.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3888160.0002
Check MTime0.00150.1849160.0001
Mysql Total
Database connection0.00040.055810.0004
Mysqli_queries0.759394.9901570.0133
Looping result0.00050.0575550.0000
Template Total0.773496.720.3867
Template load0.00200.247220.0010
Template processing0.771496.495220.3857
Template load and register function0.00010.012310.0001
states
state_id_array0.00090.115810.0009
state_identifier_array0.00070.085420.0003
Override
Cache load0.00170.2091210.0001
Sytem overhead
Fetch class attribute can translate value0.00060.070020.0003
Fetch class attribute name0.00120.150040.0003
XML
Image XML parsing0.00050.063820.0003
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00060.0791160.0000
String conversion0.00000.000940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs