* Theme::get() * * Gets an item from the data array * e.g. $this->theme->get('current_user'); * * @param string $name The value to get * @param bool $default (optional: FALSE) * @return mixed or $default if not found */
($name, $default = FALSE)
| 147 | * @return mixed or $default if not found |
| 148 | */ |
| 149 | function get($name, $default = FALSE) |
| 150 | { |
| 151 | return isset($this->_data[$name]) ? $this->_data[$name] : $default; |
| 152 | } |
| 153 | |
| 154 | /** |
| 155 | * Theme::set() |