Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92698731
PhabricatorProjectParentTransaction.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, 21:44
Size
696 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 21:44 (2 d)
Engine
blob
Format
Raw Data
Handle
22489942
Attached To
rPH Phabricator
PhabricatorProjectParentTransaction.php
View Options
<?php
final
class
PhabricatorProjectParentTransaction
extends
PhabricatorProjectTypeTransaction
{
const
TRANSACTIONTYPE
=
'project:parent'
;
public
function
generateOldValue
(
$object
)
{
return
null
;
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$parent_phid
=
$value
;
$project
=
id
(
new
PhabricatorProjectQuery
())
->
setViewer
(
$this
->
getActor
())
->
withPHIDs
(
array
(
$parent_phid
))
->
requireCapabilities
(
array
(
PhabricatorPolicyCapability
::
CAN_VIEW
,
PhabricatorPolicyCapability
::
CAN_EDIT
,
))
->
executeOne
();
$object
->
attachParentProject
(
$project
);
$object
->
setParentProjectPHID
(
$value
);
}
}
Event Timeline
Log In to Comment