How to make multi select definition,for new module ?

Author Message

Selmah Maxim

Tuesday 20 May 2003 2:10:10 am

Hi ..

I Need to select from ezcontentobject some rows, and from the ezuser, now the ezcontentobject.owner is the related to ezuser.id, how can i select the user info with definition function ?

for ezcontentobject selecttion :

function &definition()
{
return array( "fields" => array( "id" => "ID",
"owner_id" => "Owner",
"contentclass_id"=> "7",
"name"=>"Name",
"current_version"=>"Version",
"published"=> "Published",
"modified"=> "Modified"
),
"keys" => array( "id" ),
"increment_key" => "id",
"class_name" => "Company",
"sort" => array( "id" => "asc" ),
"name" => "ezcontentobject " );
}

should i make another function to pick the user info by ezcontentobject.owner, or i can add more fields in the selection array ?

thx.

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 11:37:20
Script start
Timing: Jan 18 2025 11:37:20
Module start 'layout'
Timing: Jan 18 2025 11:37:20
Module start 'content'
Timing: Jan 18 2025 11:37:22
Module end 'content'
Timing: Jan 18 2025 11:37:22
Script end

Main resources:

Total runtime1.4341 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.1641152.6406
Module start 'layout' 0.00460.0019 741.804739.4922
Module start 'content' 0.00651.4260 781.2969402.6719
Module end 'content' 1.43260.0015 1,183.96888.1250
Script end 1.4340  1,192.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2082160.0002
Check MTime0.00130.0918160.0001
Mysql Total
Database connection0.00050.035810.0005
Mysqli_queries1.396497.3704460.0304
Looping result0.00040.0263440.0000
Template Total1.404797.920.7023
Template load0.00200.137520.0010
Template processing1.402797.810420.7013
Template load and register function0.00020.011210.0002
states
state_id_array0.00120.085910.0012
state_identifier_array0.00140.094920.0007
Override
Cache load0.00150.1073240.0001
Sytem overhead
Fetch class attribute can translate value0.00070.047510.0007
Fetch class attribute name0.00150.104710.0015
XML
Image XML parsing0.00010.007210.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00070.0459100.0001
String conversion0.00000.000640.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs