83 $cssClass = trim(
"module {$this->module->css_class} $cssClass");
84 return (
$output !==
'') ?
"<div class='$cssClass'>".$output.
"</div>" :
"";
97 $cssClass = trim(
"module {$this->module->css_class} $cssClass");
99 $title = $this->module->getTitle();
109 $constraint =
" site_user_id='$user->site_user_id' ";
111 $limit= $this->module->getNum_Items();
113 if ($limit) $limit =
"LIMIT $limit";
115 $orderby= $this->module->getOrd_By();
117 $results = query(
$className,
"WHERE $constraint ORDER BY $orderby DESC $limit");
121 eval($this->module->template);
123 $template = trim(ob_get_contents());
127 return $this->
wrap($template);
150 global $menu_identifier;
155 if ($this->module->php_code_file)
161 $codePath = explode(
",", $this->module->php_code_file);
162 if (count($codePath) == 2)
164 $name = $codePath[0];
165 $php_code_file = $codePath[1];
172 include
$path.
"/{$php_code_file}";
185 include
$config[
'homedir'].
"/{$this->module->php_code_file}";
189 $output = trim(ob_get_contents());
213 return $this->
wrap($this->module->template);
226 $cssClass = trim(
"module {$this->module->css_class} $cssClass");
227 $menu = $this->module->Menu();
229 $params = explode(
",", $this->module->menu_parameters);
234 foreach($params as
$param)
243 trace(
"QUERYSTRING: $qs", 3);
246 $menuView->queryString =
$qs;
247 return $this->
wrap($menuView->drawView());
FakoliException is the base exception class for all Fakoli errors.
static coreTraceLevel()
Change to the configured trace level for Fakoli core code.
static getComponents()
Retrieve an array of all the currently enabled components, indexed by component name.
static applicationTraceLevel()
Change to the configured trace level for application code.
static using()
Import the datamodels, views and manifest for the specified component(s).
static getValue($component, $name)
Retrieve the value of the specified Setting.
$method
Pull out a simple reference to the request method.