PHP 클래스 Platformsh\Cli\Util\ConsoleAnimation

파일 보기 프로젝트 열기: commerceguys/platform-cli 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$currentFrame
$frames
$interval
$lastFrame
$lastFrameTime
$output

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Console\Output\OutputInterface $output, array $frames, integer $interval = 500000 )
render ( string $placeholder = '.' ) Display the current frame, and advance the pointer to the next one.

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\Console\Output\OutputInterface $output, array $frames, integer $interval = 500000 )
$output Symfony\Component\Console\Output\OutputInterface
$frames array The frames to display. Like any animation, this works best if the frames are all the same size.
$interval integer Minimum interval between frames in microseconds.

render() 공개 메소드

If the output is capable of using ANSI escape codes, this will attempt to overwrite the previous frame. But if the output is not ANSI-compatible, this will display the $placeholder instead. So, to display an endless animation only where it's safe, use: $animation = new ConsoleAnimation($output, $frames); do { $animation->render(); } while ($output->isDecorated());
public render ( string $placeholder = '.' )
$placeholder string

프로퍼티 상세

$currentFrame 보호되어 있는 프로퍼티

protected $currentFrame

$frames 보호되어 있는 프로퍼티

protected $frames

$interval 보호되어 있는 프로퍼티

protected $interval

$lastFrame 보호되어 있는 프로퍼티

protected $lastFrame

$lastFrameTime 보호되어 있는 프로퍼티

protected $lastFrameTime

$output 보호되어 있는 프로퍼티

protected $output