Page MenuHomec4science

PhabricatorVoidDocumentEngine.php
No OneTemporary

File Metadata

Created
Fri, Feb 14, 21:41

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;
}
}

Event Timeline