getIsFolder() public method

public getIsFolder ( )
 public function updateFolder(Path $p)
 {
     if (!$p->getIsFolder()) {
         throw new MetadataStorageException('not a folder');
     }
     return $this->updateDocument($p, null);
 }
Beispiel #2
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());
 }