|
@@ 496-505 (lines=10) @@
|
| 493 |
|
* @param object $obj Trigger object |
| 494 |
|
* @return BaseObject |
| 495 |
|
*/ |
| 496 |
|
function triggerCheckAttached(&$obj) |
| 497 |
|
{ |
| 498 |
|
$document_srl = $obj->document_srl; |
| 499 |
|
if(!$document_srl) return new BaseObject(); |
| 500 |
|
// Get numbers of attachments |
| 501 |
|
$oFileModel = getModel('file'); |
| 502 |
|
$obj->uploaded_count = $oFileModel->getFilesCount($document_srl); |
| 503 |
|
|
| 504 |
|
return new BaseObject(); |
| 505 |
|
} |
| 506 |
|
|
| 507 |
|
/** |
| 508 |
|
* A trigger to link the attachment with the upload_target_srl (document_srl) |
|
@@ 545-554 (lines=10) @@
|
| 542 |
|
* @param object $obj Trigger object |
| 543 |
|
* @return BaseObject |
| 544 |
|
*/ |
| 545 |
|
function triggerCommentCheckAttached(&$obj) |
| 546 |
|
{ |
| 547 |
|
$comment_srl = $obj->comment_srl; |
| 548 |
|
if(!$comment_srl) return new BaseObject(); |
| 549 |
|
// Get numbers of attachments |
| 550 |
|
$oFileModel = getModel('file'); |
| 551 |
|
$obj->uploaded_count = $oFileModel->getFilesCount($comment_srl); |
| 552 |
|
|
| 553 |
|
return new BaseObject(); |
| 554 |
|
} |
| 555 |
|
|
| 556 |
|
/** |
| 557 |
|
* A trigger to link the attachment with the upload_target_srl (comment_srl) |