How to store datatype ezselection

Author Message

Norman Leutner

Monday 14 November 2005 1:40:44 pm

Hi, I'm trying to store a attribute in my extension with datatype ezselection:

      $contentObjectAttribute->SetAttribute( 'data_int', $data );
      $contentObjectAttribute->store();

Can anyone tell me how this datatype is stored correctly? Or where I can find a example within ez?

Thanks in advance

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Bruce Morrison

Monday 14 November 2005 3:14:26 pm

Hi Norman

The best place to look for this is in the datatype code:

http://pubsvn.ez.no/nextgen/trunk/kernel/classes/datatypes/ezselection/ezselectiontype.php

HTH

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Kristof Coomans

Wednesday 16 November 2005 12:24:12 am

The numbers of the selected options are stored in data_text, each seperated by -.

A related post is http://ez.no/community/forum/setup_design/filter_content_passing_values_from_url

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Norman Leutner

Wednesday 16 November 2005 7:52:31 am

Thanks for your support...

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

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 07:26:56
Script start
Timing: Jan 19 2025 07:26:56
Module start 'layout'
Timing: Jan 19 2025 07:26:56
Module start 'content'
Timing: Jan 19 2025 07:26:56
Module end 'content'
Timing: Jan 19 2025 07:26:56
Script end

Main resources:

Total runtime0.0256 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 590.2813152.6250
Module start 'layout' 0.00920.0031 742.906339.4609
Module start 'content' 0.01230.0112 782.367293.4609
Module end 'content' 0.02350.0021 875.828134.3047
Script end 0.0256  910.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.8567140.0002
Check MTime0.00124.5927140.0001
Mysql Total
Database connection0.00166.361810.0016
Mysqli_queries0.004316.869530.0014
Looping result0.00000.194510.0000
Template Total0.00155.910.0015
Template load0.00083.239510.0008
Template processing0.00072.630910.0007
Override
Cache load0.00052.134910.0005
General
dbfile0.00031.043280.0000
String conversion0.00000.034440.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