PHP Class Captioning\Format\SubripFile

Inheritance: extends Captioning\File
Afficher le fichier Open project: captioning/captioning Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $_filename = null, $_encoding = null, $_useIconv = false, $_requireStrictFileFormat = true )
build ( )
buildPart ( $_from, $_to )
parse ( )
resetOptions ( ) : SubripFile
setOptions ( array $options ) : SubripFile

Private Methods

Méthode Description
cleanUpTimecode ( $timecode ) : mixed Add milliseconds and leading zeroes if they are missing
validateOptions ( array $options ) : boolean
validateTimelines ( string $startTimeline, string $endTimeline, boolean $allowEqual = false ) : boolean

Method Details

__construct() public méthode

public __construct ( $_filename = null, $_encoding = null, $_useIconv = false, $_requireStrictFileFormat = true )

build() public méthode

public build ( )

buildPart() public méthode

public buildPart ( $_from, $_to )

parse() public méthode

public parse ( )

resetOptions() public méthode

public resetOptions ( ) : SubripFile
Résultat SubripFile

setOptions() public méthode

public setOptions ( array $options ) : SubripFile
$options array array('_stripTags' => false, '_stripBasic' => false, '_replacements' => false)
Résultat SubripFile