src/acdhOeaw/fedora/Fedora.php
public function getResourcesByProperty(string $property, string $value = '',
                                           bool $checkIfExist = true): array {
        $query = new Query();
        if ($value != '') {
            $param = new HasValue($property, $value);
        } else {
            $param = new HasProperty($property);
        }
        $query->addParameter($param);
        return $this->getResourcesByQuery($query, '?res', $checkIfExist);
    }
public function getResourcesByProperty(string $property, string $value = '',
                                           bool $checkIfExist = true): array {
        $query = new Query();
        if ($value != '') {
            $param = new HasValue($property, $value);
        } else {
            $param = new HasProperty($property);
        }
        $query->addParameter($param);
        return $this->getResourcesByQuery($query, '?res', $checkIfExist);
    }
public function getResourcesByProperty ( string $ property , string $ value = '' , bool $ checkIfExist = true ) : array { $ query = new Query ( ) ; if ( $ value != '' ) { $ param = new HasValue ( $ property , $ value ) ; } else { $ param = new HasProperty ( $ property ) ; } $ query -> addParameter ( $ param ) ; return $ this -> getResourcesByQuery ( $ query , '?res' , $ checkIfExist ) ; }
Finds all Fedora resources having a given RDF property value.

If the value is not provided, all resources with a given property set
(to any value) are returned.

Be aware that all property values introduced during the transaction
are not taken into account (see documentation of the begin() method)

@param string $property fully qualified property URI
@param string $value optional property value
@param bool $checkIfExist should we make sure resource was not deleted
during the current transaction
@return array
@see begin()
Finds all Fedora resources having a given RDF property value .