|
@@ 459-468 (lines=10) @@
|
| 456 |
|
* @param object $obj Trigger object |
| 457 |
|
* @return Object |
| 458 |
|
*/ |
| 459 |
|
function triggerCheckAttached(&$obj) |
| 460 |
|
{ |
| 461 |
|
$document_srl = $obj->document_srl; |
| 462 |
|
if(!$document_srl) return new Object(); |
| 463 |
|
// Get numbers of attachments |
| 464 |
|
$oFileModel = getModel('file'); |
| 465 |
|
$obj->uploaded_count = $oFileModel->getFilesCount($document_srl); |
| 466 |
|
|
| 467 |
|
return new Object(); |
| 468 |
|
} |
| 469 |
|
|
| 470 |
|
/** |
| 471 |
|
* A trigger to link the attachment with the upload_target_srl (document_srl) |
|
@@ 508-517 (lines=10) @@
|
| 505 |
|
* @param object $obj Trigger object |
| 506 |
|
* @return Object |
| 507 |
|
*/ |
| 508 |
|
function triggerCommentCheckAttached(&$obj) |
| 509 |
|
{ |
| 510 |
|
$comment_srl = $obj->comment_srl; |
| 511 |
|
if(!$comment_srl) return new Object(); |
| 512 |
|
// Get numbers of attachments |
| 513 |
|
$oFileModel = getModel('file'); |
| 514 |
|
$obj->uploaded_count = $oFileModel->getFilesCount($comment_srl); |
| 515 |
|
|
| 516 |
|
return new Object(); |
| 517 |
|
} |
| 518 |
|
|
| 519 |
|
/** |
| 520 |
|
* A trigger to link the attachment with the upload_target_srl (comment_srl) |