| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class Variable { |
||
| 17 | public $is_set; |
||
| 18 | public $name; |
||
| 19 | public $value; |
||
| 20 | public $default; |
||
| 21 | |||
| 22 | public function __construct($name) { |
||
| 23 | $this->name = $name; |
||
| 24 | $this->is_set = isset($GLOBALS['conf'][$name]); |
||
| 25 | if ($this->is_set) { |
||
| 26 | $this->value = $GLOBALS['conf'][$name]; |
||
| 27 | } |
||
| 28 | |||
| 29 | if (function_exists('variable_get_default')) { |
||
| 30 | $this->default = variable_get_default($name); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | public function dump() { |
||
| 36 | } |
||
| 37 | |||
| 38 | public function link() { |
||
| 42 |