Class Env

Description
Method Summary
static null dumpError (Error $error, [boolean $die = true])
static null executeAction (string $controller_name, string $action)
static string getControllerClass (string $controller_name)
static string getControllerName (string $controller_class)
static string getHelperPath (string $helper)
static string getLayoutPath (string $layout)
static string getTemplatePath (string $template, [string $controller_name = null])
static boolean helperExists (string $helper)
static boolean isDebugging (void 0)
static boolean useController (string $controller_name)
static boolean useHelper (string $helper)
static null useLibrary (string $library)
static boolean useLibraryError (string $error_class, string $library)
Methods
static method dumpError (line 70)

Show nice error output.

  • access: public
static null dumpError (Error $error, [boolean $die = true])
  • Error $error
  • boolean $die: Die when done, default value is true
static method executeAction (line 96)

Contruct controller and execute specific action

  • access: public
static null executeAction (string $controller_name, string $action)
  • string $controller_name
  • string $action
static method getControllerClass (line 182)

Return controller class based on controller name

  • access: public
static string getControllerClass (string $controller_name)
  • string $controller_name
static method getControllerName (line 171)

Return controller name based on controller class

  • access: public
static string getControllerName (string $controller_class)
  • string $controller_class
static method getHelperPath (line 220)

Return path of specific helper

  • access: public
static string getHelperPath (string $helper)
  • string $helper
static method getLayoutPath (line 209)

Return layout

  • access: public
static string getLayoutPath (string $layout)
  • string $layout
static method getTemplatePath (line 194)

Return path of specific template

  • access: public
static string getTemplatePath (string $template, [string $controller_name = null])
  • string $template
  • string $controller_name
static method helperExists (line 160)

Check if specific helper exists

  • access: public
static boolean helperExists (string $helper)
  • string $helper
static method isDebugging (line 12)

Check if environment is in debug mode

  • access: public
static boolean isDebugging (void 0)
  • void 0
static method useController (line 120)

Find and include specific controller based on controller name

  • throws: FileDnxError if controller file does not exists
  • access: public
static boolean useController (string $controller_name)
  • string $controller_name
static method useHelper (line 141)

Use specific helper

  • throws: FileDnxError
  • access: public
static boolean useHelper (string $helper)
  • string $helper: Helper name
static method useLibrary (line 26)

Use specific library. This function will look in application directory first and then in enviroment library folder. If it doesn't finds requested class in it LibraryDnxError will be raised

  • throws: LibraryDnxError
  • access: public
static null useLibrary (string $library)
  • string $library: Library name
static method useLibraryError (line 50)

Include library error class if class is not already included

  • access: public
static boolean useLibraryError (string $error_class, string $library)
  • string $error_class
  • string $library: Library name

Documentation generated on Wed, 23 Jan 2008 01:58:35 +0000 by phpDocumentor 1.4.0