Changeset 2470
- Timestamp:
- 04/11/08 13:29:41 (3 months ago)
- Files:
-
- trunk/modules/forge/libraries/Form_Group.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/modules/forge/libraries/Form_Group.php
r2022 r2470 15 15 ( 16 16 'type' => 'group', 17 'name' => '', 17 18 'class' => 'group', 18 19 'label' => '', … … 23 24 public $method; 24 25 25 public function __construct($ class = 'group')26 public function __construct($name = NULL, $class = 'group') 26 27 { 28 $this->data['name'] = $name; 27 29 $this->data['class'] = $class; 28 30 … … 34 36 public function __get($key) 35 37 { 36 if ($key == 'type' )38 if ($key == 'type' || $key == 'name') 37 39 { 38 return $this->data[ 'type'];40 return $this->data[$key]; 39 41 } 40 42 return parent::__get($key);
