Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2992354
PhabricatorProjectWatcherListView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Feb 23, 07:52 (1 d, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1181222
Default Alt Text
PhabricatorProjectWatcherListView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment