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

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

        $aItems = $this->getByColumn($this->tableTokenColumn, $aTokens, $aData, true);
        if ($bMaintainInputOrder) {
            return $this->sortItemsByColumn($aItems, $aTokens, $this->tableTokenColumn);
        } else {
            return $aItems;
        }
    }
public function getByTokens ( $ aTokens , array $ aData = [ ] , $ bMaintainInputOrder = false ) { if ( ! $ this -> tableTokenColumn ) { throw new ModelException ( static :: class . '::getByTokens() Column variable not set.' , 1 ) ; } $ aItems = $ this -> getByColumn ( $ this -> tableTokenColumn , $ aTokens , $ aData , true ) ; if ( $ bMaintainInputOrder ) { return $ this -> sortItemsByColumn ( $ aItems , $ aTokens , $ this -> tableTokenColumn ) ; } else { return $ aItems ; } }
Fetch objects by an array of tokens

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

@return array
@throws ModelException if object property tableTokenColumn is not set
Fetch objects by an array of tokens