本文整理匯總了PHP中CSS::getFiles方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSS::getFiles方法的具體用法?PHP CSS::getFiles怎麽用?PHP CSS::getFiles使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CSS
的用法示例。
在下文中一共展示了CSS::getFiles方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getMasterview
private function getMasterview($controller, $hasUser)
{
global $INK_User;
$controllerName = $controller->GetName();
$javaScripts = new JS($controllerName);
$cssfiles = new CSS($controllerName);
//set master statically, we may want to change this to a user controller thing later.
//May be usefull for access controll as well.
$masterview = new ViewTemplate();
if ($hasUser) {
$modules = $INK_User->getModules();
$customermodules = from('$module')->in($modules)->where('$module => $module->SystemStatus() == 0')->select('$module');
$systemmodules = from('$module')->in($modules)->where('$module => $module->SystemStatus() == 1')->select('$module');
$moduleList = new ModuleList($customermodules, $controllerName, array('id' => 'navigation'));
$masterview->SysModules = $systemmodules;
$masterview->sites = $INK_User->getRole()->getSites();
$masterview->INK_User = $INK_User;
$masterview->modules = $moduleList->getList();
}
$masterview->javascripts = $javaScripts->getScripts();
$masterview->cssfiles = $cssfiles->getFiles();
$masterview->hasUser = $hasUser;
//show the view and return the result as a string
$viewview = $this->getView();
ob_start();
try {
$viewview->show($this->controller->getName(), $this->resolveAction());
} catch (Exception $e) {
throw $e;
}
$masterview->maincontent = ob_get_clean();
return $masterview;
}