src/wcmf/lib/model/mapper/impl/AbstractRDBMapper.php
protected function loadObjectsFromQueryParts($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) {
    if ($buildDepth < 0 && !in_array($buildDepth, [BuildDepth::INFINITE, BuildDepth::SINGLE])) {
      throw new IllegalArgumentException("Build depth not supported: $buildDepth");
    }

    // create query
    $selectStmt = $this->getSelectSQL($criteria, null, null, $orderby, $pagingInfo);

    $objects = $this->loadObjectsFromSQL($selectStmt, $buildDepth, $pagingInfo);
    return $objects;
  }
protected function loadObjectsFromQueryParts($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) {
    if ($buildDepth < 0 && !in_array($buildDepth, [BuildDepth::INFINITE, BuildDepth::SINGLE])) {
      throw new IllegalArgumentException("Build depth not supported: $buildDepth");
    }

    // create query
    $selectStmt = $this->getSelectSQL($criteria, null, null, $orderby, $pagingInfo);

    $objects = $this->loadObjectsFromSQL($selectStmt, $buildDepth, $pagingInfo);
    return $objects;
  }
protected function loadObjectsFromQueryParts ( $ type , $ buildDepth = BuildDepth :: SINGLE , $ criteria = null , $ orderby = null , PagingInfo $ pagingInfo = null ) { if ( $ buildDepth < 0 && ! in_array ( $ buildDepth , [ BuildDepth :: INFINITE , BuildDepth :: SINGLE ] ) ) { throw new IllegalArgumentException ( "Build depth not supported: $buildDepth" ) ; } // create query $ selectStmt = $ this -> getSelectSQL ( $ criteria , null , null , $ orderby , $ pagingInfo ) ; $ objects = $ this -> loadObjectsFromSQL ( $ selectStmt , $ buildDepth , $ pagingInfo ) ; return $ objects ; }
Load objects defined by several query parts.
@param $type The type of the object
@param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build
(except BuildDepth::REQUIRED, BuildDepth::PROXIES_ONLY) (default: BuildDepth::SINGLE)
@param $criteria An array of Criteria instances that define conditions on the type's attributes (optional, default: _null_)
@param $orderby An array holding names of attributes to order by, maybe appended with 'ASC', 'DESC' (optional, default: _null_)
@param $pagingInfo A reference PagingInfo instance (optional, default: _null_)
@return Array of PersistentObject instances
Load objects defined by several query parts .