PHP Класс Platformsh\Cli\Util\ActivityUtil

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$stateNames

Открытые методы

Метод Описание
formatState ( string $state ) : string Format a state name.
waitAndLog ( Platformsh\Client\Model\Activity $activity, Symfony\Component\Console\Output\OutputInterface $output, string $success = null, string $failure = null ) : boolean Wait for a single activity to complete, and display the log continuously.
waitMultiple ( array $activities, Symfony\Component\Console\Output\OutputInterface $output, Platformsh\Client\Model\Project $project ) : boolean Wait for multiple activities to complete.

Описание методов

formatState() публичный статический Метод

Format a state name.
public static formatState ( string $state ) : string
$state string
Результат string

waitAndLog() публичный статический Метод

Wait for a single activity to complete, and display the log continuously.
public static waitAndLog ( Platformsh\Client\Model\Activity $activity, Symfony\Component\Console\Output\OutputInterface $output, string $success = null, string $failure = null ) : boolean
$activity Platformsh\Client\Model\Activity
$output Symfony\Component\Console\Output\OutputInterface
$success string
$failure string
Результат boolean True if the activity succeeded, false otherwise.

waitMultiple() публичный статический Метод

A progress bar tracks the state of each activity. The activity log is only displayed at the end, if an activity failed.
public static waitMultiple ( array $activities, Symfony\Component\Console\Output\OutputInterface $output, Platformsh\Client\Model\Project $project ) : boolean
$activities array
$output Symfony\Component\Console\Output\OutputInterface
$project Platformsh\Client\Model\Project
Результат boolean True if all activities succeed, false otherwise.

Описание свойств

$stateNames защищенное статическое свойство

protected static $stateNames