Page MenuHomePhorge

PhabricatorVoidDocumentEngine.php
No OneTemporary

Size
871 B
Referenced Files
None
Subscribers
None

PhabricatorVoidDocumentEngine.php

<?php
final class PhabricatorVoidDocumentEngine
extends PhabricatorDocumentEngine {
const ENGINEKEY = 'void';
public function getViewAsLabel(PhabricatorDocumentRef $ref) {
return null;
}
protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) {
return 'fa-file';
}
protected function getContentScore(PhabricatorDocumentRef $ref) {
return 1000;
}
protected function getByteLengthLimit() {
return null;
}
protected function canRenderDocumentType(PhabricatorDocumentRef $ref) {
return true;
}
protected function newDocumentContent(PhabricatorDocumentRef $ref) {
$message = pht(
'No document engine can render the contents of this file.');
$container = phutil_tag(
'div',
array(
'class' => 'document-engine-message',
),
$message);
return $container;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, May 4, 5:20 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
66610
Default Alt Text
PhabricatorVoidDocumentEngine.php (871 B)

Event Timeline