function settings($mixed = NULL) { if ($this->settings == NULL) { $this->settings = CrayonGlobalSettings::get_obj(); } if ($mixed === NULL) { return $this->settings; } else { if (is_string($mixed)) { return $this->settings->get($mixed); } else { if (is_array($mixed)) { $this->settings->set($mixed); return TRUE; } } } return FALSE; }