Show
Ignore:
Timestamp:
08/05/05 21:14:38 (3 years ago)
Author:
schst
Message:

Added new removeRule() method (Fixes bug #174)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/patForms/Rule.php

    r203 r295  
    123123    function patForms_Rule( $id = null ) 
    124124    { 
    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; 
    131129    } 
    132130 
     
    137135    * @param    string  id 
    138136    */ 
    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     
    144153   /** 
    145154    * set the locale, this is needed to update the rule