Page MenuHomeMTRNord's Forge
Diviner Tech Docs PhabricatorFileTransform

abstract class PhabricatorFileTransform
Phorge Technical Documentation (Files)

This class is not documented.

Methods

abstract public function getTransformName()

This method is not documented.
Return
wild

abstract public function getTransformKey()

This method is not documented.
Return
wild

abstract public function canApplyTransform($file)

This method is not documented.
Parameters
\PhabricatorFile$file
Return
wild

abstract public function applyTransform($file)

This method is not documented.
Parameters
\PhabricatorFile$file
Return
wild

public function getDefaultTransform($file)

This method is not documented.
Parameters
\PhabricatorFile$file
Return
wild

public function generateTransforms()

This method is not documented.
Return
wild

public function getOrExecuteTransformExplicit($file)

Get an existing transformed file, or create a new transformed file if no transformed file already exists. If a new file is produced, it is connected to the original file in an explicit way, so, persisting a new 'PhabricatorTransformedFile' row.

Parameters
PhabricatorFile$fileOriginal file. You must check yourself if the viewer has sufficient permissions to see this file.
Return
PhabricatorFileTransformed file

public function executeTransform($file)

Create a new transformed file. This usually causes the creation of a new 'PhabricatorFile'.

Parameters
PhabricatorFile$fileOriginal file
Return
PhabricatorFileTransformed file

public function executeTransformExplicit($file)

Wrapper of executeTransform() that also persists the relationship between the original file and the transform, if it makes sense to do so.

Parameters
PhabricatorFile$fileOriginal file
Return
PhabricatorFileTransformed file

public static function getAllTransforms()

This method is not documented.
Return
wild

public static function getTransformByKey($key)

This method is not documented.
Parameters
$key
Return
wild