Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93152597
PhabricatorExportFormat.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
Tue, Nov 26, 14:55
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Nov 28, 14:55 (2 d)
Engine
blob
Format
Raw Data
Handle
22577299
Attached To
rPH Phabricator
PhabricatorExportFormat.php
View Options
<?php
abstract
class
PhabricatorExportFormat
extends
Phobject
{
private
$viewer
;
final
public
function
getExportFormatKey
()
{
return
$this
->
getPhobjectClassConstant
(
'EXPORTKEY'
);
}
final
public
function
setViewer
(
PhabricatorUser
$viewer
)
{
$this
->
viewer
=
$viewer
;
return
$this
;
}
final
public
function
getViewer
()
{
return
$this
->
viewer
;
}
abstract
public
function
getExportFormatName
();
abstract
public
function
getMIMEContentType
();
abstract
public
function
getFileExtension
();
abstract
public
function
addObject
(
$object
,
array
$fields
,
array
$map
);
abstract
public
function
newFileData
();
public
function
isExportFormatEnabled
()
{
return
true
;
}
final
public
static
function
getAllExportFormats
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getExportFormatKey'
)
->
execute
();
}
final
public
static
function
getAllEnabledExportFormats
()
{
$formats
=
self
::
getAllExportFormats
();
foreach
(
$formats
as
$key
=>
$format
)
{
if
(!
$format
->
isExportFormatEnabled
())
{
unset
(
$formats
[
$key
]);
}
}
return
$formats
;
}
}
Event Timeline
Log In to Comment