root/plugins/vjCommentPlugin/TRUNK/lib/model/doctrine/PluginComment.class.php
| Revision 29136, 511 bytes (checked in by jp_morvan, 3 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * PluginComment |
| 5 | * |
| 6 | * @package vjCommentPlugin |
| 7 | * @subpackage model |
| 8 | * @author Jean-Philippe MORVAN <jp.morvan@ville-villejuif.fr> |
| 9 | * @version SVN: $Id: Builder.php 6820 2009-11-30 17:27:49Z jwage $ |
| 10 | */ |
| 11 | abstract class PluginComment extends BaseComment |
| 12 | { |
| 13 | public function getAuthor() |
| 14 | { |
| 15 | if( null !== $this->getUserId() ) |
| 16 | { |
| 17 | return $this->getUser()->getUsername(); |
| 18 | } |
| 19 | else |
| 20 | { |
| 21 | return $this->getAuthorName(); |
| 22 | } |
| 23 | } |
| 24 | } |
Note: See TracBrowser for help on using the browser.