Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/transform/PhabricatorFileTransform.php
| <?php | <?php | ||||
| abstract class PhabricatorFileTransform extends Phobject { | abstract class PhabricatorFileTransform extends Phobject { | ||||
| abstract public function getTransformName(); | abstract public function getTransformName(); | ||||
| abstract public function getTransformKey(); | abstract public function getTransformKey(); | ||||
| abstract public function canApplyTransform(PhabricatorFile $file); | abstract public function canApplyTransform(PhabricatorFile $file); | ||||
| abstract public function applyTransform(PhabricatorFile $file); | abstract public function applyTransform(PhabricatorFile $file); | ||||
| public function getDefaultTransform(PhabricatorFile $file) { | |||||
| return null; | |||||
| } | |||||
| public function generateTransforms() { | public function generateTransforms() { | ||||
| return array($this); | return array($this); | ||||
| } | } | ||||
| public static function getAllTransforms() { | public static function getAllTransforms() { | ||||
| static $map; | static $map; | ||||
| if ($map === null) { | if ($map === null) { | ||||
| Show All 27 Lines | |||||