Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/document/PhabricatorVoidDocumentEngine.php
<?php | <?php | ||||
final class PhabricatorVoidDocumentEngine | final class PhabricatorVoidDocumentEngine | ||||
extends PhabricatorDocumentEngine { | extends PhabricatorDocumentEngine { | ||||
const ENGINEKEY = 'void'; | const ENGINEKEY = 'void'; | ||||
public function getViewAsLabel(PhabricatorDocumentRef $ref) { | public function getViewAsLabel(PhabricatorDocumentRef $ref) { | ||||
return null; | return null; | ||||
} | } | ||||
protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { | protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { | ||||
return 'fa-file'; | return 'fa-file'; | ||||
} | } | ||||
protected function getContentScore() { | protected function getContentScore(PhabricatorDocumentRef $ref) { | ||||
return 1000; | return 1000; | ||||
} | } | ||||
protected function getByteLengthLimit() { | |||||
return null; | |||||
} | |||||
protected function canRenderDocumentType(PhabricatorDocumentRef $ref) { | protected function canRenderDocumentType(PhabricatorDocumentRef $ref) { | ||||
return true; | return true; | ||||
} | } | ||||
protected function newDocumentContent(PhabricatorDocumentRef $ref) { | protected function newDocumentContent(PhabricatorDocumentRef $ref) { | ||||
$message = pht( | $message = pht( | ||||
'No document engine can render the contents of this file.'); | 'No document engine can render the contents of this file.'); | ||||
Show All 11 Lines |