1 | <?php |
||
51 | class ArticleComment extends ActiveRecord |
||
52 | { |
||
53 | /** |
||
54 | * The article this comment belongs to. |
||
55 | * |
||
56 | * @var \Alpha\Model\Type\Relation |
||
57 | * |
||
58 | * @since 1.0 |
||
59 | */ |
||
60 | protected $articleID; |
||
61 | |||
62 | /** |
||
63 | * The content of the comment posted by the user. |
||
64 | * |
||
65 | * @var \Alpha\Model\Type\Text |
||
66 | * |
||
67 | * @since 1.0 |
||
68 | */ |
||
69 | protected $content; |
||
70 | |||
71 | /** |
||
72 | * An array of data display labels for the class properties. |
||
73 | * |
||
74 | * @var array |
||
75 | * |
||
76 | * @since 1.0 |
||
77 | */ |
||
78 | protected $dataLabels = array('ID' => 'Article Comment ID#', 'articleID' => 'Article', 'content' => 'Comment'); |
||
79 | |||
80 | /** |
||
81 | * The name of the database table for the class. |
||
82 | * |
||
83 | * @var string |
||
84 | * |
||
85 | * @since 1.0 |
||
86 | */ |
||
87 | const TABLE_NAME = 'ArticleComment'; |
||
88 | |||
89 | /** |
||
90 | * Trace logger. |
||
91 | * |
||
92 | * @var \Alpha\Util\Logging\Logger |
||
93 | * |
||
94 | * @since 1.1 |
||
95 | */ |
||
96 | private static $logger = null; |
||
|
|||
97 | |||
98 | /** |
||
99 | * constructor for the class. |
||
100 | * |
||
101 | * @since 1.0 |
||
102 | */ |
||
103 | public function __construct() |
||
119 | } |
||
120 |