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

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

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

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

@return array
@throws ModelException
Fetch objects by their slugs