fkooman\RemoteStorage\Path::getIsPublic PHP Метод

getIsPublic() публичный Метод

public getIsPublic ( )
    public function getIsPublic()
    {
        return count($this->pathParts) > 3 && 'public' === $this->pathParts[2];
    }

Usage Example

Пример #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::getIsPublic