API documentation :: Docs For Class arbitViewModelDecorationDependencyInjectionManager
Packages:Interfaces:
Classes:
|
Core::View::arbitViewModelDecorationDependencyInjectionManagerClass arbitViewModelDecorationDependencyInjectionManagerView decoration manager. View decoration manager. The view decoration manager knows about a list of decorators for view models, which are stored dependant on the view handler, which allows different decorators for different output types. The decorators for view models are specified through callbacks to the decorators methods. If the callback is a string, which would normally just call some global function, it is interpreted as a non-static call on the view handler object. Each call to a callback may either return the same object again, a different view model object, or a string.
Member Variables
Method Summary
MethodsaddDecorator
static void
addDecorator(
string
$handler
, string
$model
, callback
$callback
)
Add a decorator Add a new or additional decorator for a view model. Add a decorator Add a new or additional decorator for a view model. Parameters:
decorate
static mixed
decorate(
arbitDecorateable
$model
)
Decorate a view model Applies available decorators to the given vew model until somthing displayable has been generated. in the class level documentation. Decorate a view model Applies available decorators to the given vew model until somthing displayable has been generated. The algorithm used for this is described in the class level documentation. The method will return the decorator result, which will never be a arbitDecorateable again, but may depend on the used decorator implementations. In most implementations a string will be returned. Parameters:
setViewHandler
static void
setViewHandler(
arbitViewHandler
$handler
)
Set current view handler Set the view handler to look up decorators for, and which will be used to call non-static decorator callbacks on. details). Set current view handler Set the view handler to look up decorators for, and which will be used to call non-static decorator callbacks on. (See class description for details). Parameters:
Documentation generated on Mon, 05 Apr 2010 14:01:47 +0200 by phpDocumentor 1.4.3
|