fkooman\RemoteStorage\Path::getUserId PHP Méthode

getUserId() public méthode

public getUserId ( )
    public function getUserId()
    {
        return $this->pathParts[1];
    }

Usage Example

 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::getUserId