src/acdhOeaw/fedora/FedoraResource.php
public function getChildrenByProperty(string $property, string $value = ''): array {
        $query = $this->getChildrenQuery();
        if ($value != '') {
            $param = new HasValue($property, $value);
        } else {
            $param = new HasProperty($property);
        }
        $query->addParameter($param);
        return $this->fedora->getResourcesByQuery($query);
    }
public function getChildrenByProperty(string $property, string $value = ''): array {
        $query = $this->getChildrenQuery();
        if ($value != '') {
            $param = new HasValue($property, $value);
        } else {
            $param = new HasProperty($property);
        }
        $query->addParameter($param);
        return $this->fedora->getResourcesByQuery($query);
    }
public function getChildrenByProperty ( string $ property , string $ value = '' ) : array { $ query = $ this -> getChildrenQuery ( ) ; if ( $ value != '' ) { $ param = new HasValue ( $ property , $ value ) ; } else { $ param = new HasProperty ( $ property ) ; } $ query -> addParameter ( $ param ) ; return $ this -> fedora -> getResourcesByQuery ( $ query ) ; }
Returns all resource's children having a given property or a given value
of a given property.

It is assumed that child-parent relations are denoted by:
`child -> config::relProp -> id <- config::idProp <- parent`
metadata properties scheme.

@param string $property fully qualified URI of the property
@param string $value property value (optional)
@return array
Returns all resource s children having a given property or a given value of a given property .