public getPageList ( Eccube\Entity\Master\DeviceType $DeviceType, string $where = null, string[] $parameters = [] ) : array | ||
$DeviceType | Eccube\Entity\Master\DeviceType | 端末種別ID |
$where | string | 追加の検索条件 |
$parameters | string[] | 追加の検索パラメーター |
Результат | 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;
}