all users

Author Message

Mazen Alsibai

Tuesday 08 November 2005 7:11:13 am

Hi:
how can i fetch all users registered in my database?
thanks

Ɓukasz Serwatka

Wednesday 09 November 2005 11:30:38 pm

You can do tree fetch from User accounts

fetch(content,tree ...)

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/modules/content/fetch_functions/tree

But this will be inefficient if you have e.g 15000 users.

All users are in ezuser table, so with one simple SQL query you can fetch data and via custom operator return array then display data using {section} or {foreach}

http://ez.no/products/ez_publish_cms/documentation/development/extensions/template_operator

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime0.0150 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.0052 588.0078151.1953
Module start 'layout' 0.00520.0024 739.203136.6016
Module start 'content' 0.00760.0059 775.804790.2344
Module end 'content' 0.01350.0015 866.039129.9922
Script end 0.0150  896.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.2720140.0002
Check MTime0.00106.9227140.0001
Mysql Total
Database connection0.00074.791010.0007
Mysqli_queries0.002516.951030.0008
Looping result0.00000.093710.0000
Template Total0.00117.110.0011
Template load0.00085.469210.0008
Template processing0.00021.418510.0002
Override
Cache load0.00063.831510.0006
General
dbfile0.001912.576280.0002
String conversion0.00000.039740.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