예제 #1
0
파일: FilterTest.php 프로젝트: php-lug/lug
 /**
  * @expectedException \Lug\Component\Grid\Exception\OptionNotFoundException
  * @expectedExceptionMessage The filter option "bar" could not be found.
  */
 public function testMissingOption()
 {
     $this->filter->getOption('bar');
 }
예제 #2
0
파일: Filter.php 프로젝트: php-lug/lug
 /**
  * @param string  $name
  * @param string  $label
  * @param string  $type
  * @param string  $form
  * @param mixed[] $formOptions
  * @param mixed[] $options
  */
 public function __construct($name, $label, $type, $form, array $formOptions = [], array $options = [])
 {
     parent::__construct($name, $label, $type, $options);
     $this->form = $form;
     $this->formOptions = $formOptions;
 }