Class Zend_Controller_Action_HelperBroker

Description
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Controller/Action/HelperBroker.php (line 38)


	
			
Variable Summary
 static Zend_Controller_Action_Helper_Abstract[] $_helpers
 static array $_paths
Method Summary
 static void addPath (string $path, [string $prefix = 'Zend_Controller_Action_Helper'])
 static void addPrefix (string $prefix)
 static boolean hasHelper (string $name)
 static boolean removeHelper (string $name)
 static void resetHelpers ()
 static void _loadHelper (string $name)
 static string _normalizeHelperName (string $name)
 void __construct (Zend_Controller_Action $actionController)
 mixed __call (string $method, array $args)
Variables
static Zend_Controller_Action_Helper_Abstract[] $_helpers = array() (line 45)

$_helpers - Helper array

  • access: protected
static array $_paths = array(array(
'dir' => 'Zend/Controller/Action/Helper/',
'prefix' => 'Zend_Controller_Action_Helper_'
))
(line 52)

$_paths - paths to Action_Helpers

  • access: protected
Zend_Controller_Action $_actionController (line 62)

$_actionController - ActionController reference

  • access: protected
Methods
static addHelper (line 70)

addHelper() - Add helper objects

  • access: public
static void addHelper (Zend_Controller_Action_Helper_Abstract $helper)
static addPath (line 108)

addPath() - Add path to repositories where Action_Helpers could be found.

  • access: public
static void addPath (string $path, [string $prefix = 'Zend_Controller_Action_Helper'])
  • string $path
  • string $prefix: Optional; defaults to 'Zend_Controller_Action_Helper'
static addPrefix (line 82)

addPrefix() - Add repository of helpers by prefix

  • access: public
static void addPrefix (string $prefix)
  • string $prefix
static getExistingHelper (line 225)

getExistingHelper() - get helper by name

Static method to retrieve helper object. Only retrieves helpers already initialized with the broker (either via addHelper() or on-demand loading via getHelper()).

Throws an exception if the referenced helper does not exist in the stack; use hasHelper() to check if the helper is registered prior to retrieving it.

  • throws: Zend_Controller_Action_Exception
  • access: public
static Zend_Controller_Action_Helper_Abstract getExistingHelper (string $name)
  • string $name
static hasHelper (line 241)

Is a particular helper loaded in the broker?

  • access: public
static boolean hasHelper (string $name)
  • string $name
static removeHelper (line 253)

Remove a particular helper from the broker

  • access: public
static boolean removeHelper (string $name)
  • string $name
static resetHelpers (line 95)

resetHelpers()

  • access: public
static void resetHelpers ()
static _loadHelper (line 270)

_loadHelper()

  • access: protected
static void _loadHelper (string $name)
  • string $name
static _normalizeHelperName (line 170)

Normalize helper name for lookups

  • access: protected
static string _normalizeHelperName (string $name)
  • string $name
Constructor __construct (line 131)

__construct() -

  • access: public
void __construct (Zend_Controller_Action $actionController)
getHelper (line 185)

getHelper() - get helper by name

  • access: public
Zend_Controller_Action_Helper_Abstract getHelper (string $name)
  • string $name
notifyPostDispatch (line 157)

notifyPostDispatch() - called by action controller dispatch method

  • access: public
void notifyPostDispatch ()
notifyPreDispatch (line 145)

notifyPreDispatch() - called by action controller dispatch method

  • access: public
void notifyPreDispatch ()
__call (line 316)

__call()

  • throws: Zend_Controller_Action_Exception if helper does not have a direct() method
  • access: public
mixed __call (string $method, array $args)
  • string $method
  • array $args
__get (line 332)

__get()

  • access: public
  • string $name

Documentation generated on Sun, 27 May 2007 23:24:30 -0700 by phpDocumentor 1.3.2