Eccube\Repository\PageLayoutRepository::getPageList PHP Method

getPageList() public method

この関数は, dtb_pagelayout の情報を検索する. $deviceTypeId は必須. デフォルト値は DEVICE_TYPE_PC.
public getPageList ( Eccube\Entity\Master\DeviceType $DeviceType, string $where = null, string[] $parameters = [] ) : array
$DeviceType Eccube\Entity\Master\DeviceType 端末種別ID
$where string 追加の検索条件
$parameters string[] 追加の検索パラメーター
return array ページ属性の配列
    public function getPageList(DeviceType $DeviceType, $where = null, $parameters = array())
    {
        $qb = $this->createQueryBuilder('l')->orderBy('l.id', 'DESC')->where('l.DeviceType = :DeviceType')->setParameter('DeviceType', $DeviceType)->andWhere('l.id <> 0')->orderBy('l.id', 'ASC');
        if (!is_null($where)) {
            $qb->andWhere($where);
            foreach ($parameters as $key => $val) {
                $qb->setParameter($key, $val);
            }
        }
        $PageLayouts = $qb->getQuery()->getResult();
        return $PageLayouts;
    }