Page MenuHomeMTRNord's Forge
Diviner Tech Docs PeopleProfilePictureBeforeDestructionEngineExtension

final class PeopleProfilePictureBeforeDestructionEngineExtension
Phorge Technical Documentation (People)

Before a profile picture is destroyed, restore the builtin picture.

Methods

final public function getExtensionKey()
Inherited

PhabricatorBeforeDestructionEngineExtension

Get the extension internal key.

Return
string

public function getExtensionName()

PhabricatorBeforeDestructionEngineExtension

Get the extension human name.

PeopleProfilePictureBeforeDestructionEngineExtension
This method is not documented.
Return
string

public function canBeforeDestroyObject($destruction_engine, $object)

PhabricatorBeforeDestructionEngineExtension

Check if this extension supports a "Before Destruction" hook on the specified object.

The object is guaranteed to have a PHID and still exist but will be destroyed later. This method should not contain write operations. This method exposes a PhabricatorDestructionEngine since it can give useful info, but here you should not use it to destroy objects. When this method returns true, the method beforeDestroyObject() will be fired.

PeopleProfilePictureBeforeDestructionEngineExtension
This method is not documented.
Parameters
PhabricatorDestructionEngine$destruction_engineAvailable destruction engine
object$objectObject that will be destroyed
Return
boolIf true, beforeDestroyObject() will be fired.

public function beforeDestroyObject($destruction_engine, $object)

PhabricatorBeforeDestructionEngineExtension

Call your "Before Destruction" hook on the specified object. The object is guaranteed to have a PHID and still exist but will be destroyed later. This method is not called if canBeforeDestroyObject() returns false.

PeopleProfilePictureBeforeDestructionEngineExtension
This method is not documented.
Parameters
PhabricatorDestructionEngine$destruction_engineAvailable destruction engine
object$objectObject that will be destroyed
Return
wild

final public static function getAllExtensions()
Inherited

PhabricatorBeforeDestructionEngineExtension

Get all "Before Destruction Engine" extensions.

Return
list<PhabricatorDestructionEngineExtension>