/** * Sets a variable to the theme object. * * @since 1.0 * @access public * @param string * @return */ public function set() { if (!$this->theme) { $this->theme = FD::get('Themes'); } $args = func_get_args(); if (count($args) === 1 && is_array($args[0])) { $vars = $args[0]; foreach ($vars as $key => $var) { $this->theme->set($key, $var); } } if (count($args) === 2) { $this->theme->set($args[0], $args[1]); } }