Changeset 1419 for trunk/system/models/form.php
- Timestamp:
- 12/04/2007 08:17:52 PM (13 months ago)
- Files:
-
- 1 modified
-
trunk/system/models/form.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/models/form.php
r1417 r1419 7 7 8 8 // Title attribute 9 protected $title = '';9 protected $title = ''; 10 10 11 11 // Input data … … 18 18 protected $status; 19 19 20 public function __construct( )20 public function __construct($title = NULL, $action = NULL, $inputs = NULL) 21 21 { 22 22 // Uncomment the following line if you want the database loaded: … … 25 25 // Load validation 26 26 $this->validation = new Validation(); 27 28 // Set title 29 is_null($title) or $this->title($title); 30 31 // Set action 32 is_null($action) or $this->action($action); 33 34 // Set inputs 35 is_array($inputs) and $this->inputs($inputs); 27 36 } 28 37
