Gc\Tab\Collection::save PHP Method

save() public method

Save tabs
public save ( ) : void
return void
    public function save()
    {
        $tabs = $this->getTabs();
        foreach ($tabs as $tab) {
            $tab->save();
        }
    }

Usage Example

Example #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testDelete()
 {
     $this->object->setTabs(array(array('name' => 'TabTest', 'description' => 'TabTest', 'sort_order' => 2, 'document_type_id' => $this->documentType->getId())));
     $this->object->save();
     $this->assertTrue($this->object->delete());
 }