Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2990119
PhabricatorCalendarExportPHIDType.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
PhabricatorCalendarExportPHIDType.php
View Options
<?php
final
class
PhabricatorCalendarExportPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'CEXP'
;
public
function
getTypeName
(
)
{
return
pht
(
'Calendar Export'
)
;
}
public
function
newObject
(
)
{
return
new
PhabricatorCalendarExport
(
)
;
}
public
function
getPHIDTypeApplicationClass
(
)
{
return
PhabricatorCalendarApplication
::
class
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorCalendarExportQuery
(
)
)
->
withPHIDs
(
$phids
)
;
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$export
=
$objects
[
$phid
]
;
$id
=
$export
->
getID
(
)
;
$name
=
$export
->
getName
(
)
;
$uri
=
$export
->
getURI
(
)
;
$handle
->
setName
(
$name
)
->
setFullName
(
pht
(
'Calendar Export %s: %s'
,
$id
,
$name
)
)
->
setURI
(
$uri
)
;
if
(
$export
->
getIsDisabled
(
)
)
{
$handle
->
setStatus
(
PhabricatorObjectHandle
::
STATUS_CLOSED
)
;
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 22, 20:37 (18 h, 39 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108809
Default Alt Text
PhabricatorCalendarExportPHIDType.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment