1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- class ElggComment extends \ElggObject {
-
- protected function initializeAttributes() {
- parent::initializeAttributes();
- $this->attributes['subtype'] = "comment";
- }
-
- public function canComment($user_guid = 0) {
- return false;
- }
-
- public function save($update_last_action = true) {
- $result = parent::save();
- if ($result && $update_last_action) {
- update_entity_last_action($this->container_guid, $this->time_updated);
- }
- return $result;
- }
- }
|