| @@ 204-220 (lines=17) @@ | ||
| 201 | } |
|
| 202 | ||
| 203 | $comment_count = count($comment_list); |
|
| 204 | foreach($comment_list as $key => $attribute) |
|
| 205 | { |
|
| 206 | if(!$attribute->comment_srl) |
|
| 207 | { |
|
| 208 | continue; |
|
| 209 | } |
|
| 210 | ||
| 211 | $oComment = NULL; |
|
| 212 | $oComment = new commentItem(); |
|
| 213 | $oComment->setAttribute($attribute); |
|
| 214 | if($is_admin) |
|
| 215 | { |
|
| 216 | $oComment->setGrant(); |
|
| 217 | } |
|
| 218 | ||
| 219 | $result[$attribute->comment_srl] = $oComment; |
|
| 220 | } |
|
| 221 | return $result; |
|
| 222 | } |
|
| 223 | ||
| @@ 422-434 (lines=13) @@ | ||
| 419 | ||
| 420 | $comment_count = count($comment_list); |
|
| 421 | ||
| 422 | foreach($comment_list as $key => $attribute) |
|
| 423 | { |
|
| 424 | if(!$attribute->comment_srl) |
|
| 425 | { |
|
| 426 | continue; |
|
| 427 | } |
|
| 428 | ||
| 429 | $oComment = NULL; |
|
| 430 | $oComment = new commentItem(); |
|
| 431 | $oComment->setAttribute($attribute); |
|
| 432 | ||
| 433 | $result[$key] = $oComment; |
|
| 434 | } |
|
| 435 | $output->data = $result; |
|
| 436 | } |
|
| 437 | ||