PHP 클래스 Captioning\Cue

상속: implements captioning\CueInterface
파일 보기 프로젝트 열기: captioning/captioning 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$lineEnding string
$start mixed
$startMS integer
$stop mixed
$stopMS integer
$text string
$textLines array

공개 메소드들

메소드 설명
__construct ( mixed $_start, mixed $_stop, string $_text = '' ) Cue constructor.
addTextLine ( string $_line )
getCPS ( ) : float
getDuration ( ) : integer
getFormat ( captioning\CueInterface $_cue ) : mixed
getReadingSpeed ( ) Computes Reading Speed (based on VisualSubSync algorithm)
getStart ( ) : mixed
getStartMS ( ) : integer
getStop ( ) : mixed
getStopMS ( ) : integer
getText ( ) : string
getTextLine ( integer $_index ) : string | null
getTextLines ( ) : array
ms2tc ( integer $ms, string $_separator = '.', $isHoursPaddingEnabled = true ) : string
scale ( $_baseTime, integer $_factor = 1 ) : boolean
setLineEnding ( string $_lineEnding )
setStart ( mixed $_start )
setStartMS ( integer $_startMS )
setStop ( mixed $_stop )
setStopMS ( integer $_stopMS )
setText ( string $_text )
shift ( integer $_time ) Set a delay (positive or negative)
strlen ( ) : integer

보호된 메소드들

메소드 설명
getLastTimeCodePart ( integer $tc_ms ) : string

비공개 메소드들

메소드 설명
parseTextLines ( $_text )

메소드 상세

__construct() 공개 메소드

Cue constructor.
public __construct ( mixed $_start, mixed $_stop, string $_text = '' )
$_start mixed
$_stop mixed
$_text string

addTextLine() 공개 메소드

public addTextLine ( string $_line )
$_line string

getCPS() 공개 메소드

public getCPS ( ) : float
리턴 float

getDuration() 공개 메소드

public getDuration ( ) : integer
리턴 integer

getFormat() 공개 정적인 메소드

public static getFormat ( captioning\CueInterface $_cue ) : mixed
$_cue captioning\CueInterface
리턴 mixed

getLastTimeCodePart() 보호된 정적인 메소드

protected static getLastTimeCodePart ( integer $tc_ms ) : string
$tc_ms integer
리턴 string

getReadingSpeed() 공개 메소드

Computes Reading Speed (based on VisualSubSync algorithm)
public getReadingSpeed ( )

getStart() 공개 메소드

public getStart ( ) : mixed
리턴 mixed

getStartMS() 공개 메소드

public getStartMS ( ) : integer
리턴 integer

getStop() 공개 메소드

public getStop ( ) : mixed
리턴 mixed

getStopMS() 공개 메소드

public getStopMS ( ) : integer
리턴 integer

getText() 공개 메소드

public getText ( ) : string
리턴 string

getTextLine() 공개 메소드

public getTextLine ( integer $_index ) : string | null
$_index integer
리턴 string | null

getTextLines() 공개 메소드

public getTextLines ( ) : array
리턴 array

ms2tc() 공개 정적인 메소드

public static ms2tc ( integer $ms, string $_separator = '.', $isHoursPaddingEnabled = true ) : string
$ms integer
$_separator string
리턴 string

scale() 공개 메소드

public scale ( $_baseTime, integer $_factor = 1 ) : boolean
$_baseTime
$_factor integer
리턴 boolean

setLineEnding() 공개 메소드

public setLineEnding ( string $_lineEnding )
$_lineEnding string

setStart() 공개 메소드

public setStart ( mixed $_start )
$_start mixed

setStartMS() 공개 메소드

public setStartMS ( integer $_startMS )
$_startMS integer

setStop() 공개 메소드

public setStop ( mixed $_stop )
$_stop mixed

setStopMS() 공개 메소드

public setStopMS ( integer $_stopMS )
$_stopMS integer

setText() 공개 메소드

public setText ( string $_text )
$_text string

shift() 공개 메소드

Set a delay (positive or negative)
public shift ( integer $_time )
$_time integer Delay in milliseconds

strlen() 공개 메소드

public strlen ( ) : integer
리턴 integer

프로퍼티 상세

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

protected string $lineEnding
리턴 string

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

protected mixed $start
리턴 mixed

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

protected int $startMS
리턴 integer

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

protected mixed $stop
리턴 mixed

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

protected int $stopMS
리턴 integer

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

protected string $text
리턴 string

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

protected array $textLines
리턴 array