Diviner

Class ManiphestAuxiliaryFieldSpecification

Definedsrc/applications/maniphest/auxiliaryfield/ManiphestAuxiliaryFieldSpecification.php:6
GroupManiphest (Task Tracking)

Tasks

Methods

public didMarkupText($field, $output, PhutilMarkupEngine $engine)

parameterswild$field
wild$output
PhutilMarkupEngine$engine
returnwild
This method is not documented.

public getAuxiliaryKey()

returnwild
This method is not documented.

public getCaption()

returnwild
This method is not documented.

public getHandle($phid)

parameterswild$phid
returnwild
This method is not documented.

public getLabel()

returnwild
This method is not documented.

public getMarkupEngine()

returnwild
This method is not documented.

public getMarkupFieldKey($field)

parameterswild$field
returnwild
This method is not documented.

public getMarkupFields()

returnwild
This method is not documented.

public getMarkupText($field)

parameterswild$field
returnwild
This method is not documented.

public getRequiredHandlePHIDs()

returnwild
This method is not documented.

public getTask()

returnwild
This method is not documented.

public getType()

returnwild
This method is not documented.

public getUser()

returnwild
This method is not documented.

public getValue()

returnwild
This method is not documented.

public isRequired()

returnwild
This method is not documented.

public newMarkupEngine($field)

parameterswild$field
returnwild
This method is not documented.

public renderControl()

returnwild
This method is not documented.

public renderForDetailView()

returnwild
This method is not documented.

public string|null renderTransactionDescription(ManiphestTransaction $transaction, $target)

parametersManiphestTransaction$transactionThe transaction which needs description.
const$targetConstant describing the rendering target (e.g., html or text).
returnstring|nullDescription of the transaction.

Render a short description of the transaction, to appear above comments in the Maniphest transaction log. The string will be rendered after the acting user's name. Examples are:

added a comment
added alincoln to CC
claimed this task
created this task
closed this task out of spite

You should return a similar string, describing the transaction.

Note the $target parameter -- Maniphest needs to render transaction descriptions for different targets, like web and email. This method will be called with a ManiphestAuxiliaryFieldSpecification::RENDER_TARGET_* constant describing the intended target.

public string|null renderTransactionEmailVerb(ManiphestTransaction $transaction)

parametersManiphestTransaction$transactionThe transaction which needs description.
returnstring|nullA short description of the transaction.

Render a verb to appear in email titles when a transaction involving this field occurs. Specifically, Maniphest emails are formatted like this:

[Maniphest] [Verb Here] TNNN: Task title here
             ^^^^^^^^^

You should optionally return a title-case verb or short phrase like "Created", "Retitled", "Closed", "Resolved", "Commented On", "Lowered Priority", etc., which describes the transaction.

public setAuxiliaryKey($val)

parameterswild$val
returnwild
This method is not documented.

public setCaption($val)

parameterswild$val
returnwild
This method is not documented.

public setHandles(array $handles)

parametersarray$handles
returnwild
This method is not documented.

public setLabel($val)

parameterswild$val
returnwild
This method is not documented.

public setMarkupEngine(PhabricatorMarkupEngine $engine)

parametersPhabricatorMarkupEngine$engine
returnwild
This method is not documented.

public setTask(ManiphestTask $task)

parametersManiphestTask$task
returnwild
This method is not documented.

public setType($val)

parameterswild$val
returnwild
This method is not documented.

public setUser(PhabricatorUser $user)

parametersPhabricatorUser$user
returnwild
This method is not documented.

public setValue($val)

parameterswild$val
returnwild
This method is not documented.

public bool shouldCopyWhenCreatingSimilarTask()

returnboolTrue to copy the default value from the template task when creating a new similar task.

When the user creates a task, the UI prompts them to "Create another similar task". This copies some fields (e.g., Owner and CCs) but not other fields (e.g., description). If this custom field should also be copied, return true from this method.

public shouldUseMarkupCache($field)

parameterswild$field
returnwild
This method is not documented.

public validate()

returnwild
This method is not documented.