render() public method

render the view
Since: 3.0.0
public render ( string $table = null ) : string
$table string name of the table
return string
 /**
  * testRender
  *
  * @since 3.0.0
  *
  * @param string $table
  * @param array $expectArray
  *
  * @dataProvider providerRender
  */
 public function testRender($table = null, $expectArray = [])
 {
     /* setup */
     $searchForm = new View\SearchForm($this->_registry, $this->_language);
     /* actual */
     $actual = $searchForm->render($table);
     /* compare */
     $this->assertStringStartsWith($expectArray['start'], $actual);
     $this->assertStringEndsWith($expectArray['end'], $actual);
 }
Example #2
0
 /**
  * search form
  *
  * @since 3.0.0
  *
  * @param string $table
  *
  * @return string
  */
 public static function searchForm($table = null)
 {
     $searchForm = new View\SearchForm(Registry::getInstance(), Language::getInstance());
     return $searchForm->render($table);
 }