function generateHead() { $toPrintHead = '<title>' . $this->title . '</title>' . "\n"; $toPrintHead .= $this->additionalHead . $this->metaData . "\n"; $sourcesString = ''; $basicInformationObject = new basicInformationModule(); foreach ($this->sourcesArray as $source) { switch ($source[0]) { case 'javascript': $sourcesString = $sourcesString . '<script type="text/javascript" src="' . $basicInformationObject->getRoot() . '/public/javascript/' . $source[1] . '.js" ></script>' . "\n"; break; case 'css': $sourcesString = $sourcesString . '<link rel="stylesheet" type="text/css" href="' . $basicInformationObject->getRoot() . '/public/css/' . $source[1] . '.css">' . "\n"; break; case 'pluginJs': $sourcesString = $sourcesString . '<script type="text/javascript" src="' . $basicInformationObject->getRoot() . '/public/plugins/' . $source[1] . '.js" ></script>' . "\n"; break; case 'pluginCss': $sourcesString = $sourcesString . '<link rel="stylesheet" type="text/css" href="' . $basicInformationObject->getRoot() . '/public/plugins/' . $source[1] . '.css">' . "\n"; break; } } $toPrintHead = $toPrintHead . $sourcesString; return $toPrintHead; }
function getUriArray() { $basicInformationObject = new basicInformationModule(); $base_url = $this->getCurrentUri(); $routes = array(); $routes = explode('/', $base_url); $routes[0] = $basicInformationObject->getRoot(); return $routes; }