Esempio n. 1
0
 /**
  * @param ElementObject $context
  *
  * @return mixed
  */
 public function overloadDecorate(callable $next, ElementObject $context)
 {
     if ($this->enabled) {
         $element = $context->getElement();
         if ($element instanceof Select) {
             $this->decorateSelect($element);
         }
     }
     return $next();
 }
Esempio n. 2
0
 public function overloadDecorate(callable $next, ElementObject $context)
 {
     $element = $context->getElement();
     if ($element instanceof Fieldset) {
         if ($element->isStep()) {
             $this->decorateStepFieldset($element);
         }
     } else {
         if ($element instanceof Form) {
             if ($element->isStepped()) {
                 $element->setTag('div')->addClass('formGroup panel-group')->setAttribute('role', 'tablist')->setAttribute('aria-multiselectable', 'true');
             }
         }
     }
     return $next();
 }
Esempio n. 3
0
 /**
  * @return ElementObject
  */
 public function createContext()
 {
     $context = new ElementObject();
     $context->setElement($this);
     return $context;
 }
Esempio n. 4
0
 public function overloadStoreToMailchimp(callable $next, ElementObject $context)
 {
     $element = $context->getElement();
     $this->storeToMailchimp($element);
     return $next();
 }
Esempio n. 5
0
 /**
  * @param ElementObject $context
  *
  * @return mixed
  */
 public function overloadDecorate(callable $next, ElementObject $context)
 {
     $element = $context->getElement();
     $this->decorateValue($element);
     return $next();
 }
Esempio n. 6
0
 public function overloadDecorate(callable $next, ElementObject $context)
 {
     $this->decorateTitle($context->getElement());
     return $next();
 }