| 1 |
<?php |
| 2 |
|
| 3 |
class DojoString |
| 4 |
{ |
| 5 |
private $object = 'DojoString'; |
| 6 |
|
| 7 |
private $value = ''; |
| 8 |
|
| 9 |
public function __construct($string){ |
| 10 |
$this->value = preg_replace('%(^[\'"]|["\']$)%', '', $string); |
| 11 |
} |
| 12 |
|
| 13 |
public function getValue(){ |
| 14 |
return $this->value; |
| 15 |
} |
| 16 |
} |
| 17 |
|
| 18 |
?> |