/** * Returns an instance of OA_Admin_UI_Decorator registered under a given name * * @param string $decoratorName a name of adaptor type to be retrieved * @param array $aParameters list of parameters to be passed to decorator constructor * @return OA_Admin_UI_Decorator */ function newDecorator($decoratorName, $aParameters = null) { $decoratorFactory = OA_Admin_UI_Decorator_Factory::singleton(); return $decoratorFactory->_newDecorator($decoratorName, $aParameters); }
/** * Registers new element decorator. Registered decorators should implement * implement OA_Admin_UI_Decorator interface. * * @param string $decoratorName Name of decorator * @param string $include Include path for decorator * @param string $className Decorator class name * @return unknown */ public function registerElementDecorator($decoratorName, $include, $className) { $registry = OA_Admin_UI_Decorator_Factory::singleton(); return $registry->registerDecorator($decoratorName, $include, $className); }