示例#1
0
 /**
  * Repopulates the fields using input data. By default uses a combination
  * of get and post but other data can be used by passing a child of InputElement
  *
  * @param \Fuel\Fieldset\Data\SimpleInput $data
  *
  * @since 2.0
  */
 public function repopulate(SimpleInput $data = null)
 {
     if (is_null($data)) {
         $data = new SimpleInput();
     }
     $this->populate($data->input());
     return $this;
 }
示例#2
0
 /**
  * @covers ::__construct
  * @covers ::config
  * @group  Fieldset
  */
 public function testConfigAll()
 {
     $config = ['foo' => 'bar', 'baz' => 'bat'];
     $object = new SimpleInput($config);
     $this->assertEquals($config, $object->config());
 }