|
@@ 451-460 (lines=10) @@
|
| 448 |
|
* @param object $obj Trigger object |
| 449 |
|
* @return Object |
| 450 |
|
*/ |
| 451 |
|
function triggerCheckAttached(&$obj) |
| 452 |
|
{ |
| 453 |
|
$document_srl = $obj->document_srl; |
| 454 |
|
if(!$document_srl) return new Object(); |
| 455 |
|
// Get numbers of attachments |
| 456 |
|
$oFileModel = getModel('file'); |
| 457 |
|
$obj->uploaded_count = $oFileModel->getFilesCount($document_srl); |
| 458 |
|
|
| 459 |
|
return new Object(); |
| 460 |
|
} |
| 461 |
|
|
| 462 |
|
/** |
| 463 |
|
* A trigger to link the attachment with the upload_target_srl (document_srl) |
|
@@ 500-509 (lines=10) @@
|
| 497 |
|
* @param object $obj Trigger object |
| 498 |
|
* @return Object |
| 499 |
|
*/ |
| 500 |
|
function triggerCommentCheckAttached(&$obj) |
| 501 |
|
{ |
| 502 |
|
$comment_srl = $obj->comment_srl; |
| 503 |
|
if(!$comment_srl) return new Object(); |
| 504 |
|
// Get numbers of attachments |
| 505 |
|
$oFileModel = getModel('file'); |
| 506 |
|
$obj->uploaded_count = $oFileModel->getFilesCount($comment_srl); |
| 507 |
|
|
| 508 |
|
return new Object(); |
| 509 |
|
} |
| 510 |
|
|
| 511 |
|
/** |
| 512 |
|
* A trigger to link the attachment with the upload_target_srl (comment_srl) |