|
@@ 467-476 (lines=10) @@
|
| 464 |
|
* @param object $obj Trigger object |
| 465 |
|
* @return Object |
| 466 |
|
*/ |
| 467 |
|
function triggerCheckAttached(&$obj) |
| 468 |
|
{ |
| 469 |
|
$document_srl = $obj->document_srl; |
| 470 |
|
if(!$document_srl) return new Object(); |
| 471 |
|
// Get numbers of attachments |
| 472 |
|
$oFileModel = getModel('file'); |
| 473 |
|
$obj->uploaded_count = $oFileModel->getFilesCount($document_srl); |
| 474 |
|
|
| 475 |
|
return new Object(); |
| 476 |
|
} |
| 477 |
|
|
| 478 |
|
/** |
| 479 |
|
* A trigger to link the attachment with the upload_target_srl (document_srl) |
|
@@ 516-525 (lines=10) @@
|
| 513 |
|
* @param object $obj Trigger object |
| 514 |
|
* @return Object |
| 515 |
|
*/ |
| 516 |
|
function triggerCommentCheckAttached(&$obj) |
| 517 |
|
{ |
| 518 |
|
$comment_srl = $obj->comment_srl; |
| 519 |
|
if(!$comment_srl) return new Object(); |
| 520 |
|
// Get numbers of attachments |
| 521 |
|
$oFileModel = getModel('file'); |
| 522 |
|
$obj->uploaded_count = $oFileModel->getFilesCount($comment_srl); |
| 523 |
|
|
| 524 |
|
return new Object(); |
| 525 |
|
} |
| 526 |
|
|
| 527 |
|
/** |
| 528 |
|
* A trigger to link the attachment with the upload_target_srl (comment_srl) |