Text operators

Author Message

Gunnstein Lye

Tuesday 01 July 2003 5:16:54 am

Lots of operators for text are needed, they could be placed in a module. E.g. substr, contains, containsregexp, startswith, endswith, replace, explode etc.

Paul Borgermans

Tuesday 01 July 2003 5:21:47 am

Are you guys having a party in Skien?

;-)

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paul Forsyth

Tuesday 01 July 2003 6:07:02 am

I am wondering if we really need to keep extending ez with more and more php functions.

What about a more flexible framework that may allow a function and parameters through on the template level to the php call underneath. That way the door is open to do more.

Obviously this would be limited to simple operators...

paul

Paul Borgermans

Tuesday 01 July 2003 6:43:58 am

But that's what Gunnstein suggested: they are thean available for use in templates.

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paul Forsyth

Tuesday 01 July 2003 7:46:49 am

I thought he was suggesting defining new operators that mapped to php ones. I would prefer a generic way of letting operators through...

Gunnstein Lye

Tuesday 01 July 2003 9:12:37 am

Yes, I was thinking about mapping. The ability to use PHP code directly could be useful. Don't know how complex it would be to do that, though.

Björn Dieding@xrow.de

Tuesday 01 July 2003 5:12:48 pm

I think it is good to have some string function/operators in the template engine.

That way we can better design the content returning from the contentobjects.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Sven Ryen

Friday 04 July 2003 2:11:49 am

Correct me if I'm wrong, but from what I read, the eZTemplatePHPOperator already offers the means for adding such facilities. Couldn't be to hard to make a module, no?

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 10:27:35
Script start
Timing: Jan 18 2025 10:27:35
Module start 'layout'
Timing: Jan 18 2025 10:27:35
Module start 'content'
Timing: Jan 18 2025 10:27:35
Module end 'content'
Timing: Jan 18 2025 10:27:35
Script end

Main resources:

Total runtime0.8866 sec
Peak memory usage4,096.0000 KB
Database Queries78

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.7891152.6094
Module start 'layout' 0.00550.0029 740.398439.4141
Module start 'content' 0.00850.8766 779.8125702.3359
Module end 'content' 0.88510.0015 1,482.148416.1953
Script end 0.8866  1,498.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3950160.0002
Check MTime0.00150.1642160.0001
Mysql Total
Database connection0.00080.093310.0008
Mysqli_queries0.821792.6792780.0105
Looping result0.00090.0994760.0000
Template Total0.852896.220.4264
Template load0.00230.264620.0012
Template processing0.850495.918220.4252
Template load and register function0.00010.012710.0001
states
state_id_array0.00080.085610.0008
state_identifier_array0.00140.153120.0007
Override
Cache load0.00200.2273300.0001
Sytem overhead
Fetch class attribute can translate value0.00080.089450.0002
Fetch class attribute name0.00130.1469110.0001
XML
Image XML parsing0.00210.232450.0004
class_abstraction
Instantiating content class attribute0.00000.0023130.0000
General
dbfile0.00100.1176290.0000
String conversion0.00000.001040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/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: 23
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs