/**
  * 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);
 }
Exemplo n.º 2
0
 public function addDecorator($elementName, $decoratorName, $decoratorOptions = null)
 {
     $elementDecorators = $this->decorators[$elementName];
     if (empty($elementDecorators)) {
         $elementDecorators = array();
     }
     $elementDecorators[] = OA_Admin_UI_Decorator_Factory::newDecorator($decoratorName, $decoratorOptions);
     $this->decorators[$elementName] = $elementDecorators;
 }