Gc\DocumentType\Model::getTabs PHP 메소드

getTabs() 공개 메소드

Get Tabs
public getTabs ( ) : Collection
리턴 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

예제 #1
0
파일: ModelTest.php 프로젝트: gotcms/gotcms
 /**
  * Test
  *
  * @return void
  */
 public function testGetTabs()
 {
     $this->assertInternalType('array', $this->object->getTabs());
 }
All Usage Examples Of Gc\DocumentType\Model::getTabs