Override eZUser::logoutCurrent

Author Message

Tristan Rivoallan

Thursday 07 July 2005 7:12:28 am

Hi,

i need to perform some actions at logout time. I use a custom eZUser class.

Overriding the logoutCurrent() method from eZUser doesn't seem to have any effect.

What is the way to do this ?

thanx

Tristan Rivoallan

Friday 15 July 2005 7:03:37 am

any takers ?

Ralph Ekekihl

Friday 15 July 2005 7:51:06 am

Hi!

The easiest way I see it, is to create a workflow that does the action you need.
Then you need to create your own trigger in the user module, to trigger the workflow to happen at user logout.

Check this thread out for info on how to add your own triggers:

http://www.ez.no/community/forum/developer/which_is_the_method_to_create
_new_triggers

good luck!

Regards,
Ralph

Contactivity B.V.
http://www.contactivity.com

Tristan Rivoallan

Friday 22 July 2005 2:48:43 am

Thanks for your answer, it looks like the right way to do it :)

i'll implement this next week.

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

Main resources:

Total runtime1.3411 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.0072 587.9141152.6250
Module start 'layout' 0.00720.0047 740.539139.4453
Module start 'content' 0.01191.3277 779.9844539.5781
Module end 'content' 1.33960.0015 1,319.562512.4766
Script end 1.3411  1,332.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2415160.0002
Check MTime0.00130.0959160.0001
Mysql Total
Database connection0.00170.123410.0017
Mysqli_queries1.289096.1158600.0215
Looping result0.00070.0486580.0000
Template Total1.307197.520.6535
Template load0.00240.175220.0012
Template processing1.304797.283420.6523
Template load and register function0.00020.011810.0002
states
state_id_array0.00080.058510.0008
state_identifier_array0.00100.072020.0005
Override
Cache load0.00200.1465240.0001
Sytem overhead
Fetch class attribute can translate value0.00060.042020.0003
Fetch class attribute name0.00130.093750.0003
XML
Image XML parsing0.00060.044120.0003
class_abstraction
Instantiating content class attribute0.00000.000850.0000
General
dbfile0.00070.0491160.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
4content/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs