| @@ 104-118 (lines=15) @@ | ||
| 101 | * Action to be called when a comment posting is reported |
|
| 102 | * @return void|Object |
|
| 103 | */ |
|
| 104 | function procCommentDeclare() |
|
| 105 | { |
|
| 106 | if(!Context::get('is_logged')) |
|
| 107 | { |
|
| 108 | return new Object(-1, 'msg_invalid_request'); |
|
| 109 | } |
|
| 110 | ||
| 111 | $comment_srl = Context::get('target_srl'); |
|
| 112 | if(!$comment_srl) |
|
| 113 | { |
|
| 114 | return new Object(-1, 'msg_invalid_request'); |
|
| 115 | } |
|
| 116 | ||
| 117 | return $this->declaredComment($comment_srl); |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * Trigger to delete its comments together with document deleted |
|
| @@ 96-104 (lines=9) @@ | ||
| 93 | * Action called when the post is reported by other member |
|
| 94 | * @return void|Object |
|
| 95 | */ |
|
| 96 | function procDocumentDeclare() |
|
| 97 | { |
|
| 98 | if(!Context::get('is_logged')) return new Object(-1, 'msg_invalid_request'); |
|
| 99 | ||
| 100 | $document_srl = Context::get('target_srl'); |
|
| 101 | if(!$document_srl) return new Object(-1, 'msg_invalid_request'); |
|
| 102 | ||
| 103 | return $this->declaredDocument($document_srl); |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * Delete alias when module deleted |
|