Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92648209
PhabricatorProjectWatcherListView.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
Fri, Nov 22, 09:10
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 09:10 (2 d)
Engine
blob
Format
Raw Data
Handle
22477821
Attached To
rPH Phabricator
PhabricatorProjectWatcherListView.php
View Options
<?php
final
class
PhabricatorProjectWatcherListView
extends
PhabricatorProjectUserListView
{
protected
function
canEditList
()
{
$viewer
=
$this
->
getViewer
();
$project
=
$this
->
getProject
();
return
PhabricatorPolicyFilter
::
hasCapability
(
$viewer
,
$project
,
PhabricatorPolicyCapability
::
CAN_EDIT
);
}
protected
function
getNoDataString
()
{
return
pht
(
'This project does not have any watchers.'
);
}
protected
function
getRemoveURI
(
$phid
)
{
$project
=
$this
->
getProject
();
$id
=
$project
->
getID
();
return
"/project/watchers/{$id}/remove/?phid={$phid}"
;
}
protected
function
getHeaderText
()
{
return
pht
(
'Watchers'
);
}
protected
function
getMembershipNote
()
{
$viewer
=
$this
->
getViewer
();
$viewer_phid
=
$viewer
->
getPHID
();
$project
=
$this
->
getProject
();
$note
=
null
;
if
(
$project
->
isUserWatcher
(
$viewer_phid
))
{
$note
=
pht
(
'You are watching this project and will receive mail about '
.
'changes made to any related object.'
);
}
return
$note
;
}
}
Event Timeline
Log In to Comment