Gc\View\Collection::init PHP Method

init() public method

Initiliaze collection
public init ( integer $documentTypeId = null ) : void
$documentTypeId integer Optional document type id
return void
    public function init($documentTypeId = null)
    {
        $this->setDocumentTypeId($documentTypeId);
        $this->getViews(true);
    }

Usage Example

Example #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testDeleteFailed()
 {
     $this->object->init(0);
     $this->assertFalse($this->object->delete());
 }
All Usage Examples Of Gc\View\Collection::init