Gc\DocumentType\Model::getTabs PHP Method

getTabs() public method

Get Tabs
public getTabs ( ) : Collection
return Gc\Tab\Collection
    public function getTabs()
    {
        if ($this->getData('tabs') === null) {
            $tabsCollection = new Tab\Collection();
            $tabsCollection->load($this->getId());
            $this->setData('tabs', $tabsCollection->getTabs());
        }
        return $this->getData('tabs');
    }

Usage Example

Beispiel #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testGetTabs()
 {
     $this->assertInternalType('array', $this->object->getTabs());
 }
All Usage Examples Of Gc\DocumentType\Model::getTabs