Fetching a class group

Author Message

Valentina Ferrari

Tuesday 10 August 2004 12:55:45 am

Hi all!
I would like to fetch the classes list inside a group of classes.

For example:

I would like to fetch all the classes inside the 'Media' class group.

TIA,
Valentina

steve walker

Tuesday 10 August 2004 1:13:53 am

Hi,

Not sure if its exactly what you want, but to filter on classes within a fetch add the code:

class_filter_type, "include", class_filter_array, array(x)

where x equals the ID of the class you only want to fetch on.

Steve.

http://www.oneworldmarket.co.uk

Valentina Ferrari

Tuesday 10 August 2004 1:30:28 am

Hi Steve,
I don't want to fetch a class by ID but I want to fetch all the classes inside a class group like the admin interface in the configuration/classes section.
So I need to know class group node.

Thanks,
Valentina

steve walker

Tuesday 10 August 2004 9:55:07 am

Valentina,

I havent done what you're trying to do... but if I were in your position:

I don't want to fetch a class by ID but I want to fetch all the classes inside a class group like the admin interface in the configuration/classes section.

I'd find the template that controls configuration/classes section and find the code they're using in there to create the fetch you're after.

Enable the template debug for the admin site if you have trouble finding which template is being utilised.

Regards, Steve.

http://www.oneworldmarket.co.uk

Bård Farstad

Tuesday 10 August 2004 10:26:54 am

Steve, there is actually no fetch function to get content classes based on group id (yet). This can be made as a template operator extension though.

--bård

Documentation: http://ez.no/doc

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 19 2025 01:18:42
Script start
Timing: Jan 19 2025 01:18:42
Module start 'layout'
Timing: Jan 19 2025 01:18:42
Module start 'content'
Timing: Jan 19 2025 01:18:43
Module end 'content'
Timing: Jan 19 2025 01:18:43
Script end

Main resources:

Total runtime0.7484 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 590.5781152.6250
Module start 'layout' 0.00580.0038 743.203139.4453
Module start 'content' 0.00950.7376 782.6484592.2188
Module end 'content' 0.74710.0013 1,374.867212.1719
Script end 0.7484  1,387.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4458160.0002
Check MTime0.00140.1835160.0001
Mysql Total
Database connection0.00070.093010.0007
Mysqli_queries0.694192.7458650.0107
Looping result0.00060.0789630.0000
Template Total0.713095.320.3565
Template load0.00200.269820.0010
Template processing0.710994.989420.3555
Template load and register function0.00020.023610.0002
states
state_id_array0.00120.156610.0012
state_identifier_array0.00170.230520.0009
Override
Cache load0.00170.2317320.0001
Sytem overhead
Fetch class attribute can translate value0.00100.132430.0003
Fetch class attribute name0.00100.135660.0002
XML
Image XML parsing0.00080.109730.0003
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00080.1065170.0000
String conversion0.00000.001640.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs