Method | Description | |
---|---|---|
__construct ( string $_start, string $_stop, string $_text ) | srtFileEntry constructor | |
calcDuration ( ) | Computes entry duration in milliseconds | |
getCPS ( ) | ||
getDurationMS ( ) | ||
getReadingSpeed ( ) | ||
getStart ( ) | ||
getStartTC ( ) | ||
getStop ( ) | ||
getStopTC ( ) | ||
getStrippedText ( ) | ||
getText ( boolean $stripTags = false, boolean $stripBasic = false, array $replacements = [] ) : string | Returns the text of the entry | |
getTimeCodeString ( $_WebVTT = false ) : string | Get the full timecode of the entry | |
ms2tc ( integer $ms ) : string | Converts milliseconds into timecode string | |
prepForStats ( ) | ||
scale ( $baseTime, $factor = 1 ) | ||
setStart ( integer $_start ) | Sets the start timecode as milliseconds | |
setStartTC ( string $_start ) | Sets the start timecode | |
setStop ( integer $_stop ) | Sets the stop timecode as milliseconds | |
setStopTC ( string $_stop ) | Sets the stop timecode | |
setText ( $_text ) | Sets a new text value | |
shift ( $time ) | Set a delay (positive or negative) | |
stripTags ( boolean $stripBasic = false, array $replacements = [] ) : boolean | Strips Advanced SSA tags | |
strlen ( ) : integer | Returns the *real* string length | |
tc2ms ( string $tc ) : integer | Converts timecode string into milliseconds |
Method | Description | |
---|---|---|
calcCPS ( ) | Computes car. / second ratio | |
calcRS ( ) | Computes Reading Speed (based on VisualSubSync algorithm) | |
genStrippedText ( ) | Generates stripped text in order to compute statistics |
public getTimeCodeString ( $_WebVTT = false ) : string | ||
return | string |
public setStartTC ( string $_start ) | ||
$_start | string |