Example #1
0
 public function __configure()
 {
     /**
      * Make a default cli layout
      */
     $layoutContainer = new LayoutContainer();
     $parentObject = $this->getConfigurableObject();
     $layoutContainer->setErrorLayout(new Layout($parentObject, '%name%> %description% <%value%>'))->setNoValueLayout(new Layout($parentObject % '%name%> %description%'))->setSuccessLayout(new Layout($parentObject % '%name%> %description% (%value%)'));
     $this->getAttributeContainer()->add(array('name' => 'layoutContainer', 'description' => 'Layout container', 'value' => $layoutContainer));
     return parent::__configure();
 }