src/Common/Model/Base.php
public function getByIds($aIds, array $aData = [], $bMaintainInputOrder = false)
    {
        if (!$this->tableIdColumn) {
            throw new ModelException(static::class . '::getByIds() Column variable not set.', 1);
        }

        $aItems = $this->getByColumn($this->tableIdColumn, $aIds, $aData, true);
        if ($bMaintainInputOrder) {
            return $this->sortItemsByColumn($aItems, $aIds, $this->tableIdColumn);
        } else {
            return $aItems;
        }
    }
public function getByIds($aIds, array $aData = [], $bMaintainInputOrder = false)
    {
        if (!$this->tableIdColumn) {
            throw new ModelException(static::class . '::getByIds() Column variable not set.', 1);
        }

        $aItems = $this->getByColumn($this->tableIdColumn, $aIds, $aData, true);
        if ($bMaintainInputOrder) {
            return $this->sortItemsByColumn($aItems, $aIds, $this->tableIdColumn);
        } else {
            return $aItems;
        }
    }
public function getByIds ( $ aIds , array $ aData = [ ] , $ bMaintainInputOrder = false ) { if ( ! $ this -> tableIdColumn ) { throw new ModelException ( static :: class . '::getByIds() Column variable not set.' , 1 ) ; } $ aItems = $ this -> getByColumn ( $ this -> tableIdColumn , $ aIds , $ aData , true ) ; if ( $ bMaintainInputOrder ) { return $ this -> sortItemsByColumn ( $ aItems , $ aIds , $ this -> tableIdColumn ) ; } else { return $ aItems ; } }
Fetch objects by their IDs

@param array $aIds                An array of IDs to fetch
@param mixed $aData               Any data to pass to getCountCommon()
@param bool  $bMaintainInputOrder Whether to maintain the input order

@return array
@throws ModelException
Fetch objects by their IDs