cleanup badge usage

This commit is contained in:
Dennis Eichhorn 2018-12-22 23:20:25 +01:00
parent 46899b9118
commit a424caa570
2 changed files with 23 additions and 7 deletions

View File

@ -34,8 +34,12 @@ class Comment
private $title = '';
private $status = 0;
private $content = '';
private $contentRaw = '';
private $ref = null;
public function __construct()
@ -88,6 +92,16 @@ class Comment
$this->content = $content;
}
public function getContentRaw() : string
{
return $this->contentRaw;
}
public function setContentRaw(string $contentRaw)
{
$this->contentRaw = $contentRaw;
}
public function getCreatedBy()
{
return $this->createdBy;

View File

@ -34,13 +34,15 @@ final class CommentMapper extends DataMapperAbstract
* @since 1.0.0
*/
protected static $columns = [
'comments_comment_id' => ['name' => 'comments_comment_id', 'type' => 'int', 'internal' => 'id'],
'comments_comment_title' => ['name' => 'comments_comment_title', 'type' => 'string', 'internal' => 'title'],
'comments_comment_content' => ['name' => 'comments_comment_content', 'type' => 'string', 'internal' => 'content'],
'comments_comment_list' => ['name' => 'comments_comment_list', 'type' => 'int', 'internal' => 'list'],
'comments_comment_ref' => ['name' => 'comments_comment_ref', 'type' => 'int', 'internal' => 'ref'],
'comments_comment_created_by' => ['name' => 'comments_comment_created_by', 'type' => 'int', 'internal' => 'createdBy'],
'comments_comment_created_at' => ['name' => 'comments_comment_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
'comments_comment_id' => ['name' => 'comments_comment_id', 'type' => 'int', 'internal' => 'id'],
'comments_comment_title' => ['name' => 'comments_comment_title', 'type' => 'string', 'internal' => 'title'],
'comments_comment_status' => ['name' => 'comments_comment_status', 'type' => 'string', 'internal' => 'status'],
'comments_comment_content' => ['name' => 'comments_comment_content', 'type' => 'string', 'internal' => 'content'],
'comments_comment_content_raw' => ['name' => 'comments_comment_content_raw', 'type' => 'string', 'internal' => 'contentRaw'],
'comments_comment_list' => ['name' => 'comments_comment_list', 'type' => 'int', 'internal' => 'list'],
'comments_comment_ref' => ['name' => 'comments_comment_ref', 'type' => 'int', 'internal' => 'ref'],
'comments_comment_created_by' => ['name' => 'comments_comment_created_by', 'type' => 'int', 'internal' => 'createdBy'],
'comments_comment_created_at' => ['name' => 'comments_comment_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
];
/**