Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F118931539
20180403.draft.01.broadcast.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, Jun 23, 02:32
Size
505 B
Mime Type
text/x-php
Expires
Wed, Jun 25, 02:32 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26946072
Attached To
rPH Phabricator
20180403.draft.01.broadcast.php
View Options
<?php
$table
=
new
DifferentialRevision
();
$conn
=
$table
->
establishConnection
(
'w'
);
$drafts
=
$table
->
loadAllWhere
(
'status = %s'
,
DifferentialRevisionStatus
::
DRAFT
);
foreach
(
$drafts
as
$draft
)
{
$properties
=
$draft
->
getProperties
();
$properties
[
DifferentialRevision
::
PROPERTY_SHOULD_BROADCAST
]
=
false
;
queryfx
(
$conn
,
'UPDATE %T SET properties = %s WHERE id = %d'
,
id
(
new
DifferentialRevision
())->
getTableName
(),
phutil_json_encode
(
$properties
),
$draft
->
getID
());
}
Event Timeline
Log In to Comment