Méthode |
Description |
|
__construct ( null $_filename = null, null $_encoding = null, boolean | false $_useIconv = false ) |
File constructor. |
|
addCue ( mixed $_mixed, string $_start = null, string $_stop = null ) : File |
Add a cue |
|
build ( ) |
|
|
changeFPS ( float $_old_fps, float $_new_fps ) : File |
Converts timecodes based on the specified FPS ratio |
|
convertTo ( string $_output_format ) : mixed |
|
|
getCue ( integer $_index ) : Cue | null |
|
|
getCueFromStart ( $_start ) |
|
|
getCues ( ) : array |
|
|
getCuesCount ( ) : integer |
|
|
getEncoding ( ) : string |
|
|
getExpectedCueClass ( captioning\FileInterface $_file, boolean | true $_full_namespace = true ) : string |
|
|
getFileContent ( ) : string |
|
|
getFilename ( ) : string |
|
|
getFirstCue ( ) : Cue | null |
|
|
getFormat ( captioning\FileInterface $_file ) : mixed |
|
|
getLastCue ( ) : Cue | null |
|
|
getStats ( ) |
Computes reading speed statistics |
|
getUseIconv ( ) : boolean | false |
|
|
loadFromFile ( null $_filename = null ) |
|
|
loadFromString ( string $_str ) |
|
|
merge ( captioning\FileInterface $_file ) |
|
|
removeCue ( integer $_index ) : File |
Removes a cue |
|
save ( string $filename = null, boolean $writeBOM = false ) |
Saves the file |
|
search ( string $_word, boolean $_case_sensitive = false, boolean $_strict = false ) : array |
Searches a word/expression and returns ids of the matched entries |
|
setEncoding ( string $_encoding ) |
|
|
setFilename ( string $_filename ) |
|
|
setLineEnding ( string $_lineEnding ) |
|
|
setUseIconv ( boolean $_useIconv ) |
|
|
shift ( integer $_time, integer $_startIndex = null, integer $_endIndex = null ) |
Shifts a range of subtitles a specified amount of time. |
|
sortCues ( ) |
Sorts cues |
|
sync ( integer $_startIndex, integer $_startTime, integer $_endIndex, integer $_endTime, boolean $_syncLast = true ) : boolean |
Auto syncs a range of subtitles given their first and last correct times. |
|