Changeset 20492 for lang/php/misc/Hermit/src/Hermit/HermitParam.php
- Timestamp:
- 10/02/08 18:12:10 (3 months ago)
- Files:
-
- 1 modified
-
lang/php/misc/Hermit/src/Hermit/HermitParam.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/php/misc/Hermit/src/Hermit/HermitParam.php
r20387 r20492 5 5 */ 6 6 class HermitParam extends stdClass { 7 public function set($name, $value){ 8 $this->$name = $value; 9 } 10 public function get($name){ 11 return $this->$name; 12 } 7 13 public function getPropertyNames(){ 8 14 $names = array(); … … 12 18 return $names; 13 19 } 20 public function __toString(){ 21 $tos = array(); 22 foreach($this as $name => $value){ 23 $tos[] = $name . '=>' . $value; 24 } 25 return __CLASS__ . ' {' . join(',', $tos) . '}'; 26 } 14 27 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)