Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895296
20180403.draft.01.broadcast.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
505 B
Referenced Files
None
Subscribers
None
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
(
)
)
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 21:14 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128829
Default Alt Text
20180403.draft.01.broadcast.php (505 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment