Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96164442
PhabricatorSubscribableInterface.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Dec 23, 08:48
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Dec 25, 08:48 (2 d)
Engine
blob
Format
Raw Data
Handle
23127989
Attached To
rPH Phabricator
PhabricatorSubscribableInterface.php
View Options
<?php
interface
PhabricatorSubscribableInterface
{
/**
* Return true to indicate that the given PHID is automatically subscribed
* to the object (for example, they are the author or in some other way
* irrevocably a subscriber). This will, e.g., cause the UI to render
* "Automatically Subscribed" instead of "Subscribe".
*
* @param PHID PHID (presumably a user) to test for automatic subscription.
* @return bool True if the object/user is automatically subscribed.
*/
public
function
isAutomaticallySubscribed
(
$phid
);
/**
* Return `true` to indicate that "Subscribers:" should be shown when
* rendering property lists for this object, or `false` to omit the property.
*
* @return bool True to show the "Subscribers:" property.
*/
public
function
shouldShowSubscribersProperty
();
/**
* Return `true` to indicate that the "Subscribe" action should be shown and
* enabled when rendering action lists for this object, or `false` to omit
* the action.
*
* @param phid Viewing or acting user PHID.
* @return bool True to allow the user to subscribe.
*/
public
function
shouldAllowSubscription
(
$phid
);
}
// TEMPLATE IMPLEMENTATION /////////////////////////////////////////////////////
/* -( PhabricatorSubscribableInterface )----------------------------------- */
/*
public function isAutomaticallySubscribed($phid) {
return false;
}
public function shouldShowSubscribersProperty() {
return true;
}
public function shouldAllowSubscription($phid) {
return true;
}
*/
Event Timeline
Log In to Comment