Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
ElggComment.php
Go to the documentation of this file.
1
<?php
9
class
ElggComment
extends
\ElggObject
{
10
16
protected
function
initializeAttributes
() {
17
parent::initializeAttributes();
18
19
$this->attributes[
'subtype'
] =
"comment"
;
20
}
21
32
public
function
canComment
(
$user_guid
= 0) {
33
return
false
;
34
}
35
42
public
function
save
($update_last_action =
true
) {
43
$result
=
parent::save
();
44
if
(
$result
&& $update_last_action) {
45
update_entity_last_action
($this->
container_guid
, $this->time_updated);
46
}
47
return
$result
;
48
}
49
}
ElggComment
Definition:
ElggComment.php:9
$result
$result
Definition:
set_maintenance_mode.php:11
ElggComment\canComment
canComment($user_guid=0)
Can a user comment on this object? Always returns false (threaded comments not yet supported) ...
Definition:
ElggComment.php:32
update_entity_last_action
update_entity_last_action($guid, $posted=null)
Update the last_action column in the entities table for $guid.
Definition:
entities.php:953
save
elgg river item elgg form comment save
Definition:
components.php:242
ElggComment\initializeAttributes
initializeAttributes()
Set subtype to comment.
Definition:
ElggComment.php:16
ElggComment\save
save($update_last_action=true)
Update container entity last action on successful save.
Definition:
ElggComment.php:42
$user_guid
$user_guid
Avatar remove action.
Definition:
remove.php:6
ElggObject
Definition:
ElggObject.php:22
container_guid
$comment container_guid
Definition:
save.php:60
Generated on Sat Dec 21 2024 00:00:49 for Elgg by
1.8.11