|
@@ 478-487 (lines=10) @@
|
| 475 |
|
* @param object $obj Trigger object |
| 476 |
|
* @return Object |
| 477 |
|
*/ |
| 478 |
|
function triggerCheckAttached(&$obj) |
| 479 |
|
{ |
| 480 |
|
$document_srl = $obj->document_srl; |
| 481 |
|
if(!$document_srl) return new Object(); |
| 482 |
|
// Get numbers of attachments |
| 483 |
|
$oFileModel = getModel('file'); |
| 484 |
|
$obj->uploaded_count = $oFileModel->getFilesCount($document_srl); |
| 485 |
|
|
| 486 |
|
return new Object(); |
| 487 |
|
} |
| 488 |
|
|
| 489 |
|
/** |
| 490 |
|
* A trigger to link the attachment with the upload_target_srl (document_srl) |
|
@@ 527-536 (lines=10) @@
|
| 524 |
|
* @param object $obj Trigger object |
| 525 |
|
* @return Object |
| 526 |
|
*/ |
| 527 |
|
function triggerCommentCheckAttached(&$obj) |
| 528 |
|
{ |
| 529 |
|
$comment_srl = $obj->comment_srl; |
| 530 |
|
if(!$comment_srl) return new Object(); |
| 531 |
|
// Get numbers of attachments |
| 532 |
|
$oFileModel = getModel('file'); |
| 533 |
|
$obj->uploaded_count = $oFileModel->getFilesCount($comment_srl); |
| 534 |
|
|
| 535 |
|
return new Object(); |
| 536 |
|
} |
| 537 |
|
|
| 538 |
|
/** |
| 539 |
|
* A trigger to link the attachment with the upload_target_srl (comment_srl) |