class PublicHeartbeat in Heartbeat 6.4
Same name and namespace in other branches
- 6.3 includes/publicheartbeat.inc \PublicHeartbeat
Class PublicHeartbeat Concrete class to prepare messages for all users in the site of whom the heartbeat is set to public
Hierarchy
- class \HeartbeatAccess
- class \PublicHeartbeat
Expanded class hierarchy of PublicHeartbeat
3 string references to 'PublicHeartbeat'
- heartbeat_heartbeat_register_access_types in ./
heartbeat.module - Implementation of hook_heartbeat_register_access_types().
- heartbeat_views_default_views in views/
heartbeat_views.views_default.inc - Implementation of hook_views_default_views().
- views_handler_filter_heartbeat_access::value_form in views/
handlers/ views_handler_filter_heartbeat_access.inc - Add a type selector to the value form
File
- includes/
publicheartbeat.inc, line 17
View source
class PublicHeartbeat extends HeartbeatAccess {
/**
* Implementation of dressUpMessages().
*
* @param object HeartbeatParser $heartbeat
* The heartbeat parser object
* @return object HeartbeatParser $heartbeat
*/
public function dressUpMessages(HeartbeatParser $heartbeat) {
$sql = " AND ua.access > 0 ";
$heartbeat->raw_messages = $this
->resultSql($sql);
return $heartbeat;
}
/**
* Function to add a part of a sql to a query built by views.
* @param object $view
* The view handler object by reference to add our part to the query
*/
public function addViewQuery(&$view) {
// Make the sql limited to the access
$view->query
->add_where('andgroup', "{$view->table_alias}.access > 0");
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HeartbeatAccess:: |
public | property | ||
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
protected | property | ||
HeartbeatAccess:: |
protected | function | Check denied messages | |
HeartbeatAccess:: |
public | function | ConfigurationForm Basic configuration form for streams. | |
HeartbeatAccess:: |
public | function | Fake constructor to hook this method instead of the constructor. | 2 |
HeartbeatAccess:: |
protected | function | createHeartbeatParser | |
HeartbeatAccess:: |
public | function | ||
HeartbeatAccess:: |
protected | function | finishMessages | |
HeartbeatAccess:: |
final public | function | getAccess | |
HeartbeatAccess:: |
public | function | Function to retrieve the active user. | |
HeartbeatAccess:: |
public | function | ||
HeartbeatAccess:: |
final public | function | getOffsetSql | |
HeartbeatAccess:: |
public | function | Get HeartbeatStream object with all configurations | |
HeartbeatAccess:: |
protected | function | hasAccess | 4 |
HeartbeatAccess:: |
public | function | hasErrors | |
HeartbeatAccess:: |
public | function | Getter function for heartbeat page/blocks | |
HeartbeatAccess:: |
protected | function | prepareStream | 2 |
HeartbeatAccess:: |
protected | function | resultSql | 1 |
HeartbeatAccess:: |
protected | function | setError | |
HeartbeatAccess:: |
final public | function | setOffsetSql | |
HeartbeatAccess:: |
public | function | Skip active user. Return whether you want to skip the active user (being the logged-in user and NOT the displayed user) from display. Typical private will not skip this one ofcourse where most other will skip active user since you don't want to… | 5 |
HeartbeatAccess:: |
constant | |||
HeartbeatAccess:: |
constant | |||
HeartbeatAccess:: |
protected | function | proctected fuinction whoIsActor Calculate the user of whom we want to see activity for. Set the actor of the stream. | 1 |
HeartbeatAccess:: |
public | function | Constructor | |
PublicHeartbeat:: |
public | function |
Function to add a part of a sql to a query built by views. Overrides HeartbeatAccess:: |
|
PublicHeartbeat:: |
public | function |
Implementation of dressUpMessages(). Overrides HeartbeatAccess:: |