@@ 182-197 (lines=16) @@ | ||
179 | if(!is_array($document_list)) $document_list = array($document_list); |
|
180 | ||
181 | $document_count = count($document_list); |
|
182 | foreach($document_list as $key => $attribute) |
|
183 | { |
|
184 | $document_srl = $attribute->document_srl; |
|
185 | if(!$document_srl) continue; |
|
186 | ||
187 | if(!$GLOBALS['XE_DOCUMENT_LIST'][$document_srl]) |
|
188 | { |
|
189 | $oDocument = null; |
|
190 | $oDocument = new documentItem(); |
|
191 | $oDocument->setAttribute($attribute, false); |
|
192 | if($is_admin) $oDocument->setGrant(); |
|
193 | $GLOBALS['XE_DOCUMENT_LIST'][$document_srl] = $oDocument; |
|
194 | } |
|
195 | ||
196 | $result[$attribute->document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$document_srl]; |
|
197 | } |
|
198 | ||
199 | if($load_extra_vars) $this->setToAllDocumentExtraVars(); |
|
200 | ||
@@ 363-376 (lines=14) @@ | ||
360 | $output = executeQueryArray('document.getNoticeList', $args, $columnList); |
|
361 | if(!$output->toBool()||!$output->data) return; |
|
362 | ||
363 | foreach($output->data as $key => $val) |
|
364 | { |
|
365 | $document_srl = $val->document_srl; |
|
366 | if(!$document_srl) continue; |
|
367 | ||
368 | if(!$GLOBALS['XE_DOCUMENT_LIST'][$document_srl]) |
|
369 | { |
|
370 | $oDocument = null; |
|
371 | $oDocument = new documentItem(); |
|
372 | $oDocument->setAttribute($val, false); |
|
373 | $GLOBALS['XE_DOCUMENT_LIST'][$document_srl] = $oDocument; |
|
374 | } |
|
375 | $result->data[$document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$document_srl]; |
|
376 | } |
|
377 | $this->setToAllDocumentExtraVars(); |
|
378 | ||
379 | foreach($result->data as $document_srl => $val) |