Datatypes\Textarea\PrevalueEditor::save PHP Method

save() public method

Save Textarea prevalue editor
public save ( ) : void
return void
    public function save()
    {
        //Save prevalue in column Datatypes\prevalue_value
        $post = $this->getRequest()->getPost();
        $rows = $post->get('rows', null);
        $cols = $post->get('cols', null);
        $wrap = $post->get('wrap', null);
        $this->setConfig(array('cols' => $cols, 'rows' => $rows, 'wrap' => $wrap));
    }

Usage Example

Beispiel #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testSave()
 {
     $this->assertNull($this->object->save());
 }
PrevalueEditor