Doc about array[] in config files

Author Message

Pascal France

Thursday 23 November 2006 6:09:23 am

Hi,

I'm looking for the doc page which explains the sens of the "array[]" syntaxe in the config files.

In this page:
http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/configuration
I founded:

If the name of a setting ends with a pair of square brackets, it means that the setting accepts an array of values.

but nothing about the initialization of an array.

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Matthew Carroll

Thursday 23 November 2006 3:30:01 pm

You clear an array in the config files like this:

ArrayName[]

...so in the example given on the page you linked to, if you wanted to first clear the array to make sure there were no other extensions being loaded, the settings would become:

[ExtensionSettings]
ActiveExtensions[]
ActiveExtensions[]=ezdhtml
ActiveExtensions[]=ezpaypal

...that is useful to stop default settings from showing up in your siteaccess' array settings. I think the most common use for this I have found is AvailableSiteAccessList[], which I use to prevent other siteaccesses from showing up in the options lists in the admin interface.

Matthew

http://carroll.org.uk

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

Main resources:

Total runtime0.0225 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.1328151.2109
Module start 'layout' 0.00510.0027 739.343836.6641
Module start 'content' 0.00780.0131 776.007890.2813
Module end 'content' 0.02090.0016 866.289129.9922
Script end 0.0224  896.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002310.4064140.0002
Check MTime0.00104.6550140.0001
Mysql Total
Database connection0.00083.552310.0008
Mysqli_queries0.002611.734130.0009
Looping result0.00000.053110.0000
Template Total0.00114.810.0011
Template load0.00093.877110.0009
Template processing0.00020.885210.0002
Override
Cache load0.00062.448510.0006
General
dbfile0.006629.367180.0008
String conversion0.00000.027640.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