Friday 24 September 2010 7:57:12 am - 1 reply

» Read full tutorial

Introduction

At the end of this tutorial you should be comfortable with exporting user information from PHP scripts.

Author Message

Lars Fugelseth

Moderated by: Nicolas Pastorino

Friday 01 October 2010 4:53:20 am

I think there is a small error in the example for fetching the current logged in user.
The current user is fetch with the following method:

$user = eZUser::currentUser();
$user = $users['name'];
$cli->output( 'Username: ' . $user->attribute( 'login' ) ); 
$cli->output( 'Email: ' . $user->attribute( 'email' ) )

You must be logged in to post messages in this topic!

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 17 2025 20:50:48
Script start
Timing: Jan 17 2025 20:50:48
Module start 'layout'
Timing: Jan 17 2025 20:50:48
Module start 'content'
Timing: Jan 17 2025 20:50:48
Module end 'content'
Timing: Jan 17 2025 20:50:48
Script end

Main resources:

Total runtime0.0133 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 597.7969152.1406
Module start 'layout' 0.00460.0025 749.937539.5078
Module start 'content' 0.00700.0046 789.445395.5156
Module end 'content' 0.01170.0016 884.960930.3672
Script end 0.0133  915.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002518.7326140.0002
Check MTime0.00107.8905140.0001
Mysql Total
Database connection0.00054.125410.0005
Mysqli_queries0.001813.162830.0006
Looping result0.00000.082410.0000
Template Total0.00139.910.0013
Template load0.00075.329710.0007
Template processing0.00064.517810.0006
Override
Cache load0.00053.405010.0005
General
dbfile0.00032.209680.0000
String conversion0.00000.053840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs