Elgg
Version 1.11
|
Go to the source code of this file.
Namespaces | |
Elgg\Core | |
Activate a plugin or plugins. | |
Functions | |
_elgg_comments_init () | |
Comments initialization function. More... | |
_elgg_comments_page_handler ($page) | |
Page handler for generic comments manipulation. More... | |
_elgg_comment_redirect ($comment_guid, $fallback_guid) | |
Redirect to the comment in context of the containing page. More... | |
_elgg_comment_setup_entity_menu ($hook, $type, $return, $params) | |
Setup the menu shown with a comment. More... | |
_elgg_comment_url_handler ($hook, $type, $return, $params) | |
Format and return the URL for a comment. More... | |
_elgg_comments_container_permissions_override ($hook, $type, $return, $params) | |
Allow users to comment on entities not owned by them. More... | |
_elgg_comments_permissions_override ($hook, $type, $return, $params) | |
By default, only authors can edit their comments. More... | |
_elgg_comments_access_sync ($event, $type, $entity) | |
Update comment access to match that of the container. More... | |
_elgg_comments_test ($hook, $type, $value, $params) | |
Runs unit tests for . More... | |
Variables | |
return | function (\Elgg\EventsService $events,\Elgg\HooksRegistrationService $hooks) |
_elgg_comment_redirect | ( | $comment_guid, | |
$fallback_guid | |||
) |
Redirect to the comment in context of the containing page.
int | $comment_guid | GUID of the comment |
int | $fallback_guid | GUID of the containing entity |
Definition at line 102 of file comments.php.
_elgg_comment_setup_entity_menu | ( | $hook, | |
$type, | |||
$return, | |||
$params | |||
) |
Setup the menu shown with a comment.
string | $hook | 'register' |
string | $type | 'menu:entity' |
Definition at line 164 of file comments.php.
_elgg_comment_url_handler | ( | $hook, | |
$type, | |||
$return, | |||
$params | |||
) |
Format and return the URL for a comment.
This is the container's URL because comments don't have their own page.
string | $hook | 'entity:url' |
string | $type | 'object' |
string | $return | URL for entity |
array | $params | Array with the elgg entity passed in as 'entity' |
Definition at line 197 of file comments.php.
_elgg_comments_access_sync | ( | $event, | |
$type, | |||
$entity | |||
) |
Update comment access to match that of the container.
string | $event | 'update:after' |
string | $type | 'all' |
ElggEntity | $entity | The updated entity |
private
Definition at line 309 of file comments.php.
_elgg_comments_container_permissions_override | ( | $hook, | |
$type, | |||
$return, | |||
$params | |||
) |
Allow users to comment on entities not owned by them.
Object being commented on is used as the container of the comment so permission check must be overridden if user isn't the owner of the object.
string | $hook | 'container_permissions_check' |
string | $type | 'object' |
boolean | $return | Can the current user write to this container? |
array | $params | Array of parameters (container, user, subtype) |
Definition at line 231 of file comments.php.
_elgg_comments_init | ( | ) |
_elgg_comments_page_handler | ( | $page | ) |
Page handler for generic comments manipulation.
array | $page |
Definition at line 38 of file comments.php.
_elgg_comments_permissions_override | ( | $hook, | |
$type, | |||
$return, | |||
$params | |||
) |
By default, only authors can edit their comments.
string | $hook | 'permissions_check' |
string | $type | 'object' |
boolean | $return | Can the given user edit the given entity? |
array | $params | Array of parameters (entity, user) |
Definition at line 251 of file comments.php.
_elgg_comments_test | ( | $hook, | |
$type, | |||
$value, | |||
$params | |||
) |
Runs unit tests for .
string | $hook | unit_test |
string | $type | system |
mixed | $value | Array of tests |
mixed | $params | Params |
Definition at line 350 of file comments.php.
return function(\Elgg\EventsService $events,\Elgg\HooksRegistrationService $hooks) |
Definition at line 356 of file comments.php.