Changeset 295 for trunk/patForms/Rule.php
- Timestamp:
- 08/05/05 21:14:38 (3 years ago)
- Files:
-
- trunk/patForms/Rule.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/patForms/Rule.php
r203 r295 123 123 function patForms_Rule( $id = null ) 124 124 { 125 if( $id === null ) 126 { 127 $id = uniqid( '' ); 128 } 129 130 $this->_id = $id; 125 if ($id === null) { 126 $id = uniqid(''); 127 } 128 $this->_id = $id; 131 129 } 132 130 … … 137 135 * @param string id 138 136 */ 139 function setId( $id ) 140 { 141 $this->_id = $id; 142 } 143 137 function setId($id) 138 { 139 $this->_id = $id; 140 } 141 142 /** 143 * get the unique id of the rule 144 * 145 * @access public 146 * @return string 147 */ 148 function getId() 149 { 150 return $this->_id; 151 } 152 144 153 /** 145 154 * set the locale, this is needed to update the rule
