* @license PHP License * @package WB * @subpackage pat */ /** * Abstraction layer patForms_Rule * * Layer between base patForms_Rule and Wombat's special patForms_Rules. * This layer adds generalized configuratuin method. Hence all Wombat-rules * extend this class. * * @version 0.1.0 * @package WB * @subpackage pat */ class WBPAT_Forms_Rule extends patForms_Rule { /** * multip purpose configuration parameter * @var array */ protected $config = array(); /** * gerneral configuration method * * Standard function to setup form rule. This makes it easier to setup form rules defined * in XML form definition * * The $config array will existing default configuration parameter * * @param array $config */ public function setConfig($config = array()) { $this->config = array_merge($this->config, $config); } } ?>