src/Entities.php
public function findMany($moduleName, array $params, array $select = [ ], $limit = 0, $offset = 0)
    {
        if (!is_array($params) || (!empty($params) && !is_assoc_array($params))) {
            throw new WSException(
                "You have to specify at least one search parameter (prop => value) 
                in order to be able to retrieve entity(ies)"
            );
        }

        // Builds the query
        $query = self::getQueryString($moduleName, $params, $select, $limit, $offset);

        // Run the query
        $records = $this->wsClient->runQuery($query);
        if (false === $records || !is_array($records) || empty($records)) {
            return null;
        }

        return $records;
    }
public function findMany($moduleName, array $params, array $select = [ ], $limit = 0, $offset = 0)
    {
        if (!is_array($params) || (!empty($params) && !is_assoc_array($params))) {
            throw new WSException(
                "You have to specify at least one search parameter (prop => value) 
                in order to be able to retrieve entity(ies)"
            );
        }

        // Builds the query
        $query = self::getQueryString($moduleName, $params, $select, $limit, $offset);

        // Run the query
        $records = $this->wsClient->runQuery($query);
        if (false === $records || !is_array($records) || empty($records)) {
            return null;
        }

        return $records;
    }
public function findMany ( $ moduleName , array $ params , array $ select = [ ] , $ limit = 0 , $ offset = 0 ) { if ( ! is_array ( $ params ) || ( ! empty ( $ params ) && ! is_assoc_array ( $ params ) ) ) { throw new WSException ( "You have to specify at least one search parameter (prop => value) 
                in order to be able to retrieve entity(ies)" ) ; } // Builds the query $ query = self :: getQueryString ( $ moduleName , $ params , $ select , $ limit , $ offset ) ; // Run the query $ records = $ this -> wsClient -> runQuery ( $ query ) ; if ( false === $ records || ! is_array ( $ records ) || empty ( $ records ) ) { return null ; } return $ records ; }
Retrieves multiple records using module name and a set of constraints
@param  string   $moduleName  The name of the module / entity type
@param  array    $params  Data used to find matching entries
@return array    $select  The list of fields to select (defaults to SQL-like '*' - all the fields)
@return integer  $limit   Limit the list of entries to N records (acts like LIMIT in SQL)
@return integer  $offset  Integer values to specify the offset of the query
@return array  The array containing matching entries or false if nothing was found
Retrieves multiple records using module name and a set of constraints