Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96125702
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
Sun, Dec 22, 22:28
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Dec 24, 22:28 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23128125
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