public function getProperties($path, $propertyNames)
    {
        $result = $this->getPropertiesForPath($path, $propertyNames, 0);
        if (isset($result[0][200])) {
            return $result[0][200];
        } else {
            return [];
        }
    }
public function getProperties($path, $propertyNames)
    {
        $result = $this->getPropertiesForPath($path, $propertyNames, 0);
        if (isset($result[0][200])) {
            return $result[0][200];
        } else {
            return [];
        }
    }
public function getProperties ( $ path , $ propertyNames ) { $ result = $ this -> getPropertiesForPath ( $ path , $ propertyNames , 0 ) ; if ( isset ( $ result [ 0 ] [ 200 ] ) ) { return $ result [ 0 ] [ 200 ] ; } else { return [ ] ; } }
Returns a list of properties for a path.

This is a simplified version getPropertiesForPath. If you aren't
interested in status codes, but you just want to have a flat list of
properties, use this method.

Please note though that any problems related to retrieving properties,
such as permission issues will just result in an empty array being
returned.

@param string $path
@param array  $propertyNames

@return array
Returns a list of properties for a path .