eZFlow API? manipulating blocks from PHP

Author Message

Yves Thommes

Wednesday 02 March 2011 11:04:56 pm

Hi

i was wondering how i can manipulate block items through PHP.

I'm currently creating a website for a concert hall where we'll be using ezflow to show featured events on the front page. They have two sections on the website, Upcoming Shows and Past Shows. For now I'm using a cronscript, which runs at midnight and moves events from upcoming to past shows if required.

Unfortunately I was unable to find how i can remove past shows from the featured event block in ezflow.

So i'm wondering if there is an api available which would allow me to do this? Or should i consider another approach to this problem, if so, what would be the right way to solve this problem please?

Thanks

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 02:20:46
Script start
Timing: Jan 18 2025 02:20:46
Module start 'layout'
Timing: Jan 18 2025 02:20:46
Module start 'content'
Timing: Jan 18 2025 02:20:47
Module end 'content'
Timing: Jan 18 2025 02:20:47
Script end

Main resources:

Total runtime0.6425 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.0072 588.0313152.6406
Module start 'layout' 0.00720.0028 740.671939.4844
Module start 'content' 0.01000.6311 780.1563432.8984
Module end 'content' 0.64110.0014 1,213.05478.1250
Script end 0.6425  1,221.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5404160.0002
Check MTime0.00130.2077160.0001
Mysql Total
Database connection0.00110.175010.0011
Mysqli_queries0.604194.0239460.0131
Looping result0.00040.0552440.0000
Template Total0.609994.920.3050
Template load0.00200.315820.0010
Template processing0.607994.609120.3040
Template load and register function0.00010.013710.0001
states
state_id_array0.00160.242510.0016
state_identifier_array0.00140.223220.0007
Override
Cache load0.00160.2537100.0002
Sytem overhead
Fetch class attribute can translate value0.00070.113610.0007
Fetch class attribute name0.00070.114420.0004
XML
Image XML parsing0.00040.061410.0004
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00150.2377150.0001
String conversion0.00000.001540.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs