public function getPageTitle() { if (!empty($this->pageTitle)) { return String::clean($this->pageTitle) . ' | ' . $this->siteTitle; } else { return $this->settings->siteTitle; } }
/** * Get the content, from the template, replacing any tags with function calls * * @return string */ public function getContent() { $rawContent = file_get_contents($this->viewPath . $this->template); $tags = array('{name}' => String::clean($this->name), '{label}' => String::clean($this->label), '{value}' => String::clean($this->value), '{properties}' => $this->displayProperties(), '{errors}' => $this->getErrors(), '{options}' => $this->getOptions()); $content = str_replace(array_keys($tags), array_values($tags), $rawContent); return $content; }
/** * Static function to iterate through all _POST variables and clean them * * @deprecated Old MySQL functions * @access public * @static */ public static function cleanPost() { if (!empty($_POST)) { foreach ($_POST as $key => $value) { if (is_array($_POST[$key])) { foreach ($_POST[$key] as $k => $v) { $_POST[$key][$k] = \VSF\String::escape($v); } } else { $_POST[$key] = \VSF\String::esacpe($value); } } } }