Свойство | Тип | Описание | |
---|---|---|---|
$owner | mixed |
Метод | Описание | |
---|---|---|
__construct ( object $attributes = null, array $options = [] ) : |
Object constructor | |
checkProgress ( ) : boolean | Check on the progress of a workflow. This can be called repeatedly and will apply a polling period to prevent flooding the API with requests. | |
fetchWithLogs ( ) : |
Re-fetches workflow data hydrated with logs | |
getMessage ( ) : string | Get the success message of a workflow or throw an exception of the workflow failed. | |
getStatus ( ) : string | Returns the status of this workflow | |
getUrl ( ) : string | Get the URL for this model | |
isFinished ( ) : boolean | Detects if the workflow has finished | |
isSuccessful ( ) : boolean | Detects if the workflow was successful | |
operations ( ) : |
Returns a list of WorkflowOperations for this workflow | |
serialize ( ) : array | Formats workflow object into an associative array for output | |
wait ( ) : |
Waits on this workflow to finish |
Метод | Описание | |
---|---|---|
poll ( ) : void | Fetches this object from Pantheon. Waits a given length of time between checks. |
public __construct ( object $attributes = null, array $options = [] ) : |
||
$attributes | object | Attributes of this model |
$options | array | Options with which to configure this model |
Результат |
public checkProgress ( ) : boolean | ||
Результат | boolean | Whether the workflow is finished or not |
public fetchWithLogs ( ) : |
||
Результат |
public getMessage ( ) : string | ||
Результат | string | The message to output to the user |
public isFinished ( ) : boolean | ||
Результат | boolean | True if workflow has finished |
public isSuccessful ( ) : boolean | ||
Результат | boolean | True if workflow succeeded |
public operations ( ) : |
||
Результат |