Gc\Tab\Collection::getImportableTabs PHP Method

getImportableTabs() public method

Return all tabs from collection
public getImportableTabs ( integer $documentTypeId ) : array
$documentTypeId integer Document type id
return array
    public function getImportableTabs($documentTypeId)
    {
        $rows = $this->fetchAll($this->select(function (Select $select) use($documentTypeId) {
            $select->where->notEqualTo('document_type_id', $documentTypeId);
        }));
        $tabs = array();
        foreach ($rows as $row) {
            $tabs[] = Model::fromArray((array) $row);
        }
        return $tabs;
    }

Usage Example

Example #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testGetImportableTabs()
 {
     $this->assertInternalType('array', $this->object->getImportableTabs(0));
 }
All Usage Examples Of Gc\Tab\Collection::getImportableTabs