|
Source for file rules.php
Documentation is available at rules.php
* Describing user interface rules to change user defined module options.
* @copyright Amiro.CMS. All rights reserved.
* @package Config_AmiClean_AmiSample
* @version $Id: rules.php 61273 2013-08-07 10:47:54Z Leontiev Anton $
if($oDeclarator->isRegistered('##modId##')){
$oMod = $oDeclarator->getModule('##modId##');
* $aOptions parameter is always AMI_Module::RLC_NONE.
* $defaultValue parameter is TRUE or FALSE.
* - $aOptions parameter is always AMI_Module::RLC_NONE.
* - $defaultValue parameter is TRUE or FALSE.
* - $aOptions parameter is array containing optional borders
* for possible value or AMI_Module::RLC_NONE.
* - $defaultValue parameter is unsigned integer.
array('min' => 0, 'max' => 10),
* - $aOptions parameter is array containing optional borders
* for possible value or AMI_Module::RLC_NONE.
* - $defaultValue parameter is signed integer.
array('min' => - 10, 'max' => 10),
* - $aOptions parameter is array containing optional borders
* for possible value (i. e. array('min' => -10, 'max' => 10)) or AMI_Module::RLC_NONE.
* - $defaultValue parameter is float number.
* - $aOptions parameter is array containing optional borders
* for possible value or AMI_Module::RLC_NONE.
* - $default Value parameter is float number.
array('length_min' => 3, 'length_max'=> 255),
* - $aOptions parameter is AMI_Module::RLC_NONE always.
* - $defaultValue parameter is string.
"text containing\nline\nbreaks"
* - $aOptions parameter is AMI_Module::RLC_NONE always.
* - $defaultValue parameter is string containing comma separated email addresses.
'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/modules/distrib/configs/ami_clean/ami_sample/rules/--modId--_rules_values.lng
array('first', 'second', 'third'),
* - $aOptions parameter is array.
* - $defaultValue parameter is array containing default array value.
* @see _local/modules/distrib/configs/ami_clean/ami_sample/rules/--modId--_rules_values.lng
array('first', 'second', 'third'),
* - $aOptions parameter is array, one of elememts is RLC_EMPTY.
* - $defaultValue parameter is array containing default array value.
* @see _local/modules/distrib/configs/ami_clean/ami_sample/rules/--modId--_rules_values.lng
array('first', 'second', 'third', AMI_Module::RLC_EMPTY),
* - $aOptions parameter is AMI_Module::RLC_NONE always.
* - $defaultValue parameter is string containing period
* in PHP strtotime() function format.
* - $aOptions parameter is AMI_Module::RLC_NONE always.
* - $defaultValue parameter is string containing period
* in PHP strtotime() function format.
'option_date_period_positive',
* - $aOptions parameter is AMI_Module::RLC_NONE always.
* - $defaultValue parameter is string containing period
* in PHP strtotime() function format.
'option_date_period_negative',
* Image extension splitter.
array('ext_img', 'ext_img_popup', 'ext_img_small', AMI_Module::RLC_EMPTY),
array('ext_img', 'ext_img_popup', 'ext_img_small'),
array("spec_small_##modId##")
array('none', 'ext_img', 'ext_img_popup', 'ext_img_small'), 'ext_img_small'
array('ext_img', 'ext_img_popup', 'ext_img_small', AMI_Module::RLC_EMPTY),
array('ext_img', 'ext_img_popup', 'ext_img_small'),
array("spec_small_##modId##")
array('ext_img', 'ext_img_popup', 'ext_img_small', AMI_Module::RLC_EMPTY),
array('ext_img', 'ext_img_popup', 'ext_img_small')
array('ext_img', 'ext_img_popup', 'ext_img_small'),
'ext_img_small_maxwidth',
'ext_img_small_maxheight',
'ext_img_popup_maxwidth',
'ext_img_popup_maxheight',
* $aOptions parameter is always AMI_Module::RLC_NONE.
* $defaultValue parameter is TRUE or FALSE.
$oMod->addRule('spl_specblock', AMI_Module::RLT_SPLITTER);
'First specblock option',
array("spec_small_##modId##")
* $aOptions parameter is always AMI_Module::RLC_NONE.
* $defaultValue parameter is TRUE or FALSE.
$oMod->addRule('spl_specblock_custom', AMI_Module::RLT_SPLITTER);
'spec_small_option_custom',
'Second specblock option',
array("spec_small_##modId##_custom")
// Finalize rules description
|