コード例 #1
0
 /**
  * {@inheritDocs}
  * 
  * @param UnitLoader          $unitLoader          Used to load sale Units
  * @param QueryBuilderFactory $queryBuilderFactory Required for sub-queries on the filter step
  */
 public function __construct($name, $displayName, UnitLoader $unitLoader, QueryBuilderFactory $queryBuilderFactory)
 {
     parent::__construct($name, $displayName);
     $this->_unitLoader = $unitLoader;
     $this->_queryBuilderFactory = $queryBuilderFactory;
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  *
  * Method calls `_setChoices()` to generate choices if they are not set
  */
 public function getForm()
 {
     $this->_setChoices();
     return parent::getForm();
 }