|
@@ 189-204 (lines=16) @@
|
| 186 |
|
if(!is_array($document_list)) $document_list = array($document_list); |
| 187 |
|
|
| 188 |
|
$document_count = count($document_list); |
| 189 |
|
foreach($document_list as $key => $attribute) |
| 190 |
|
{ |
| 191 |
|
$document_srl = $attribute->document_srl; |
| 192 |
|
if(!$document_srl) continue; |
| 193 |
|
|
| 194 |
|
if(!$GLOBALS['XE_DOCUMENT_LIST'][$document_srl]) |
| 195 |
|
{ |
| 196 |
|
$oDocument = null; |
| 197 |
|
$oDocument = new documentItem(); |
| 198 |
|
$oDocument->setAttribute($attribute, false); |
| 199 |
|
if($is_admin) $oDocument->setGrant(); |
| 200 |
|
$GLOBALS['XE_DOCUMENT_LIST'][$document_srl] = $oDocument; |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
$result[$attribute->document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$document_srl]; |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
if($load_extra_vars) $this->setToAllDocumentExtraVars(); |
| 207 |
|
|
|
@@ 370-383 (lines=14) @@
|
| 367 |
|
$output = executeQueryArray('document.getNoticeList', $args, $columnList); |
| 368 |
|
if(!$output->toBool()||!$output->data) return; |
| 369 |
|
|
| 370 |
|
foreach($output->data as $key => $val) |
| 371 |
|
{ |
| 372 |
|
$document_srl = $val->document_srl; |
| 373 |
|
if(!$document_srl) continue; |
| 374 |
|
|
| 375 |
|
if(!$GLOBALS['XE_DOCUMENT_LIST'][$document_srl]) |
| 376 |
|
{ |
| 377 |
|
$oDocument = null; |
| 378 |
|
$oDocument = new documentItem(); |
| 379 |
|
$oDocument->setAttribute($val, false); |
| 380 |
|
$GLOBALS['XE_DOCUMENT_LIST'][$document_srl] = $oDocument; |
| 381 |
|
} |
| 382 |
|
$result->data[$document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$document_srl]; |
| 383 |
|
} |
| 384 |
|
$this->setToAllDocumentExtraVars(); |
| 385 |
|
|
| 386 |
|
foreach($result->data as $document_srl => $val) |