Gc\DocumentType\Model::getTabs PHP Méthode

getTabs() public méthode

Get Tabs
public getTabs ( ) : Collection
Résultat 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

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