|
Source for file rules.php
Documentation is available at rules.php
* Sample plugin parameters
* File cotains sample plugin rules descriptions.
* @copyright Amiro.CMS. All rights reserved.
* @version $Id: rules.php 61273 2013-08-07 10:47:54Z Leontiev Anton $
* $aOptions parameter is RLC_NONE always.
* $defaultValue parameter is false always.
'spl_custom_options', RLT_SPLITTER,
* $aOptions parameter is RLC_NONE always.
* $defaultValue parameter is true or false.
* $aOptions parameter is array containing optional borders
* for possible value or RLC_NONE.
* $defaultValue parameter is unsigned integer.
array ('min' => 0, 'max' => 10), 0
* $aOptions parameter is array containing optional borders
* for possible value or RLC_NONE.
* $defaultValue parameter is signed integer.
array ('min' => - 10, 'max' => 10), - 5
* $aOptions parameter is array containing optional borders
* for possible value (i. e. array ('min' => -10, 'max' => 10)) or RLC_NONE.
* $defaultValue parameter is float number.
'option_float', RLT_FLOAT,
* $aOptions parameter is array containing optional borders
* for possible value or RLC_NONE.
* $defaultValue parameter is float number.
array ('length_min' => 3, 'length_max'=> 255), 'some string'
* $aOptions parameter is RLC_NONE always.
* $defaultValue parameter is string.
RLC_NONE, "text containing\nline\nbreaks"
* $aOptions parameter is RLC_NONE always.
* $defaultValue parameter is string containing comma separated email addresses.
'option_email', RLT_EMAIL,
RLC_NONE, 'mail.1@domain.com,mail.2@domain.com'
* Array displayed like selectbox:
* $aOptions parameter is array.
* $defaultValue parameter is int|string containing default value.
* @see _local/plugins_distr/sample/options/rules_values.lng
array ('first', 'second', 'third'), 'second'
* $aOptions parameter is array.
* $defaultValue parameter is array containing default array value.
* @see _local/plugins_distr/sample/options/rules_values.lng
'option_enum_multi_array', RLT_ENUM_MULTI_ARRAY,
array ('first', 'second', 'third'), array ('first', 'third')
* $aOptions parameter is array, one of elememts is RLC_EMPTY.
* $defaultValue parameter is array containing default array value.
* @see _local/plugins_distr/sample/options/rules_values.lng
'option_enum_multi_array2', RLT_ENUM_MULTI_ARRAY,
array ('first', 'second', 'third', RLC_EMPTY), array ()
* $aOptions parameter is RLC_NONE always.
* $defaultValue parameter is string containing period
* in PHP strtotime() function format.
'option_date_period', RLT_DATE_PERIOD,
* $aOptions parameter is RLC_NONE always.
* $defaultValue parameter is string containing period
* in PHP strtotime() function format.
'option_date_period_positive', RLT_DATE_PERIOD_POSITIVE,
* $aOptions parameter is RLC_NONE always.
* $defaultValue parameter is string containing period
* in PHP strtotime() function format.
'option_date_period_negative', RLT_DATE_PERIOD_NEGATIVE,
|