Integration - accessing ez user information

Author Message

Hilary Boyce

Tuesday 04 December 2007 3:07:40 am

I'm investigating whether we can integrate ezpublish with an existing bespoke development that we have. They would be largely independent but I would need to be able to access the ezpublish current user information from within our existing application as it would only be available to logged in users and it seems to make sense to use the ezpublish user administration. Is this possible and could someone please point me in the right direction as to how to do it. I have had a look at the usual php global variables, including session after a ezpublish user is logged in but found nothing useful.

Paul Leclercq

Tuesday 04 December 2007 3:26:51 pm

Hello Hilary,

Once a user is logged it the ezpublish website, you can easily create a page which will display the users information in which ever way you like:

http://ez.no/doc/ez_publish/technical_manual/3_10/reference/modules/user/fetch_functions/current_user
You will also need to create a custom interface which will log you into both applications at once, and log you out simultaneously.

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 21:08:46
Script start
Timing: Jan 18 2025 21:08:46
Module start 'layout'
Timing: Jan 18 2025 21:08:46
Module start 'content'
Timing: Jan 18 2025 21:08:47
Module end 'content'
Timing: Jan 18 2025 21:08:47
Script end

Main resources:

Total runtime0.7008 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.0046 588.0469152.6406
Module start 'layout' 0.00460.0034 740.687539.4766
Module start 'content' 0.00800.6914 780.1641491.3750
Module end 'content' 0.69940.0014 1,271.53918.2813
Script end 0.7008  1,279.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4519160.0002
Check MTime0.00130.1916160.0001
Mysql Total
Database connection0.00070.094610.0007
Mysqli_queries0.656693.6886540.0122
Looping result0.00090.1335520.0000
Template Total0.669095.520.3345
Template load0.00210.303220.0011
Template processing0.666995.153120.3334
Template load and register function0.00020.024410.0002
states
state_id_array0.00110.160110.0011
state_identifier_array0.00070.094520.0003
Override
Cache load0.00170.2411100.0002
Sytem overhead
Fetch class attribute can translate value0.00060.087620.0003
Fetch class attribute name0.00120.166630.0004
XML
Image XML parsing0.00100.146220.0005
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.1152150.0001
String conversion0.00000.001340.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/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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs