src/Budkit/Datastore/Model/Entity.php
final public function getObjectsList($objectType, $properties = array(), $objectURI = NULL, $objectId = NULL)
    {

        if (empty($properties)):
            if (!empty($this->propertyModel))
                $properties = array_keys($this->propertyModel);
        endif;

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

        //echo($this->withConditions) ;
        $query .= "\nGROUP BY o.object_id";
        $query .= $this->getListLookUpConditionsClause();
        $query .= $this->getListOrderByStatement();
        $query .= $this->getLimitClause();

        $total = $this->getObjectsListCount($objectType, $properties, $objectURI, $objectId); //Count first
        $results = $this->database->prepare($query)->execute();
        //Could use SQL_CALC_FOUND here but just the same as just using a second query really;
        //$queries = $this->database->getQueryLog();
        $this->resetListLookUpConditions();
        $this->setListTotal($total);

        return $results;
    }
final public function getObjectsList($objectType, $properties = array(), $objectURI = NULL, $objectId = NULL)
    {

        if (empty($properties)):
            if (!empty($this->propertyModel))
                $properties = array_keys($this->propertyModel);
        endif;

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

        //echo($this->withConditions) ;
        $query .= "\nGROUP BY o.object_id";
        $query .= $this->getListLookUpConditionsClause();
        $query .= $this->getListOrderByStatement();
        $query .= $this->getLimitClause();

        $total = $this->getObjectsListCount($objectType, $properties, $objectURI, $objectId); //Count first
        $results = $this->database->prepare($query)->execute();
        //Could use SQL_CALC_FOUND here but just the same as just using a second query really;
        //$queries = $this->database->getQueryLog();
        $this->resetListLookUpConditions();
        $this->setListTotal($total);

        return $results;
    }
final public function getObjectsList ( $ objectType , $ properties = array ( ) , $ objectURI = NULL , $ objectId = NULL ) { if ( empty ( $ properties ) ) : if ( ! empty ( $ this -> propertyModel ) ) $ properties = array_keys ( $ this -> propertyModel ) ; endif ; $ query = static :: getObjectQuery ( $ properties , "?{$this->valueGroup}property_values" , NULL , $ objectType , $ objectURI , $ objectId ) ; //echo($this->withConditions) ; $ query .= "\nGROUP BY o.object_id" ; $ query .= $ this -> getListLookUpConditionsClause ( ) ; $ query .= $ this -> getListOrderByStatement ( ) ; $ query .= $ this -> getLimitClause ( ) ; $ total = $ this -> getObjectsListCount ( $ objectType , $ properties , $ objectURI , $ objectId ) ; //Count first $ results = $ this -> database -> prepare ( $ query ) -> execute ( ) ; //Could use SQL_CALC_FOUND here but just the same as just using a second query really; //$queries = $this->database->getQueryLog(); $ this -> resetListLookUpConditions ( ) ; $ this -> setListTotal ( $ total ) ; return $ results ; }
Returns objects lists table with attributes list and values

@param type $objectType
@param type $attributes
@return type $statement
Returns objects lists table with attributes list and values