Datatypes\Textarea\Editor::save PHP Method

save() public method

Save textarea editor
public save ( ) : void
return void
    public function save()
    {
        $value = $this->getRequest()->getPost()->get($this->getName());
        $this->setValue($value);
    }

Usage Example

Beispiel #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testSave()
 {
     $this->object->getRequest()->getPost()->set($this->object->getName(), '1');
     $this->object->save();
     $this->assertEquals('1', $this->object->getValue());
 }