public function getPropertiesForChildren($path, $propertyNames)
    {
        $result = [];
        foreach ($this->getPropertiesForPath($path, $propertyNames, 1) as $k => $row) {
            // Skipping the parent path
            if (0 === $k) {
                continue;
            }

            $result[$row['href']] = $row[200];
        }

        return $result;
    }
public function getPropertiesForChildren($path, $propertyNames)
    {
        $result = [];
        foreach ($this->getPropertiesForPath($path, $propertyNames, 1) as $k => $row) {
            // Skipping the parent path
            if (0 === $k) {
                continue;
            }

            $result[$row['href']] = $row[200];
        }

        return $result;
    }
public function getPropertiesForChildren ( $ path , $ propertyNames ) { $ result = [ ] ; foreach ( $ this -> getPropertiesForPath ( $ path , $ propertyNames , 1 ) as $ k => $ row ) { // Skipping the parent path if ( 0 === $ k ) { continue ; } $ result [ $ row [ 'href' ] ] = $ row [ 200 ] ; } return $ result ; }
A kid-friendly way to fetch properties for a node's children.

The returned array will be indexed by the path of the of child node.
Only properties that are actually found will be returned.

The parent node will not be returned.

@param string $path
@param array  $propertyNames

@return array
A kid - friendly way to fetch properties for a node s children .