fkooman\RemoteStorage\Path::getIsDocument PHP Method

getIsDocument() public method

public getIsDocument ( )
    public function getIsDocument()
    {
        return !$this->getIsFolder();
    }

Usage Example

Beispiel #1
0
 public function testPublicFolder()
 {
     $p = new Path('/admin/public/path/to/Folder/');
     $this->assertEquals('admin', $p->getUserId());
     $this->assertTrue($p->getIsPublic());
     $this->assertTrue($p->getIsFolder());
     $this->assertFalse($p->getIsDocument());
     $this->assertEquals('path', $p->getModuleName());
 }
All Usage Examples Of fkooman\RemoteStorage\Path::getIsDocument