src/Budkit/Datastore/Model/Entity.php
public function getObjectsByPropertyValueBetween($property, $valueA, $valueB, array $select, $objectType = NULL, $objectURI = NULL, $objectId = NULL)
    {

        if (empty($property) || empty($valueA) || empty($valueB) || empty($select))
            return false; //We must have eactly one property value pair defined 

        $query = static::getObjectQuery($select, "?{$this->valueGroup}property_values", $objectId, $objectType, $objectURI);

        $query .= "\nGROUP BY o.object_id";
        $query .= "\nHAVING {$property} BETWEEN {$valueA} AND {$valueB}"; //@TODO check if we are comparing dates and use CAST() to convert to dates 


        $results = $this->database->prepare($query)->execute();

        return $results;
    }
public function getObjectsByPropertyValueBetween($property, $valueA, $valueB, array $select, $objectType = NULL, $objectURI = NULL, $objectId = NULL)
    {

        if (empty($property) || empty($valueA) || empty($valueB) || empty($select))
            return false; //We must have eactly one property value pair defined 

        $query = static::getObjectQuery($select, "?{$this->valueGroup}property_values", $objectId, $objectType, $objectURI);

        $query .= "\nGROUP BY o.object_id";
        $query .= "\nHAVING {$property} BETWEEN {$valueA} AND {$valueB}"; //@TODO check if we are comparing dates and use CAST() to convert to dates 


        $results = $this->database->prepare($query)->execute();

        return $results;
    }
public function getObjectsByPropertyValueBetween ( $ property , $ valueA , $ valueB , array $ select , $ objectType = NULL , $ objectURI = NULL , $ objectId = NULL ) { if ( empty ( $ property ) || empty ( $ valueA ) || empty ( $ valueB ) || empty ( $ select ) ) return false ; //We must have eactly one property value pair defined  $ query = static :: getObjectQuery ( $ select , "?{$this->valueGroup}property_values" , $ objectId , $ objectType , $ objectURI ) ; $ query .= "\nGROUP BY o.object_id" ; $ query .= "\nHAVING {$property} BETWEEN {$valueA} AND {$valueB}" ; //@TODO check if we are comparing dates and use CAST() to convert to dates  $ results = $ this -> database -> prepare ( $ query ) -> execute ( ) ; return $ results ; }
Return Object lists with matched properties between two values

@param type $property
@param type $valueA
@param type $valueB
@param type $select
@param type $objectType
@param type $objectURI
@param type $objectId
Return Object lists with matched properties between two values