{
}
- private function appClassName($name)
- {
- return $name . '_App';
- }
-
public function appList()
{
foreach($this->apps as $appName => &$app) {
if (!array_key_exists($name, $this->apps))
throw new IPF_Exception_Panic("Application \"$name\" not found");
if ($this->apps[$name] == null) {
- $className = $this->appClassName($name);
- $this->apps[$name] = new $className();
+ $className = $name.'_App';
+ $this->apps[$name] = new $className;
}
return $this->apps[$name];
}
return null;
}
- static function appLabelByModel($model)
- {
- $app = self::appByModel($model);
- if ($app)
- return strtolower($app->getLabel());
- else
- return '';
- }
-
public static function insertDirectory($path, $directory)
{
$parts = pathinfo($path);