@@ 133-153 (lines=21) @@ | ||
130 | * @return array ページ属性の配列 |
|
131 | * @deprecated since 3.0.0, to be removed in 3.1 |
|
132 | */ |
|
133 | public function getPageList(DeviceType $DeviceType, $where = null, $parameters = array()) |
|
134 | { |
|
135 | $qb = $this->createQueryBuilder('l') |
|
136 | ->orderBy('l.id', 'DESC') |
|
137 | ->where('l.DeviceType = :DeviceType') |
|
138 | ->setParameter('DeviceType', $DeviceType) |
|
139 | ->andWhere('l.id <> 0') |
|
140 | ->orderBy('l.id', 'ASC'); |
|
141 | if (!is_null($where)) { |
|
142 | $qb->andWhere($where); |
|
143 | foreach ($parameters as $key => $val) { |
|
144 | $qb->setParameter($key, $val); |
|
145 | } |
|
146 | } |
|
147 | ||
148 | $PageLayouts = $qb |
|
149 | ->getQuery() |
|
150 | ->getResult(); |
|
151 | ||
152 | return $PageLayouts; |
|
153 | } |
|
154 | ||
155 | /** |
|
156 | * 書き込みパスの取得 |
@@ 203-223 (lines=21) @@ | ||
200 | * @param string[] $parameters 追加の検索パラメーター |
|
201 | * @return array ページ属性の配列 |
|
202 | */ |
|
203 | public function getPageList(DeviceType $DeviceType, $where = null, $parameters = array()) |
|
204 | { |
|
205 | $qb = $this->createQueryBuilder('l') |
|
206 | ->orderBy('l.id', 'DESC') |
|
207 | ->where('l.DeviceType = :DeviceType') |
|
208 | ->setParameter('DeviceType', $DeviceType) |
|
209 | ->andWhere('l.id <> 0') |
|
210 | ->orderBy('l.id', 'ASC'); |
|
211 | if (!is_null($where)) { |
|
212 | $qb->andWhere($where); |
|
213 | foreach ($parameters as $key => $val) { |
|
214 | $qb->setParameter($key, $val); |
|
215 | } |
|
216 | } |
|
217 | ||
218 | $PageLayouts = $qb |
|
219 | ->getQuery() |
|
220 | ->getResult(); |
|
221 | ||
222 | return $PageLayouts; |
|
223 | } |
|
224 | ||
225 | /** |
|
226 | * 書き込みパスの取得 |