Cheetah
Public Member Functions | Static Public Member Functions | List of all members
Moovrelocator Class Reference

Public Member Functions

 setInput ($filename=null)
 
 setOutput ($filename)
 
 relocateMoovAtom ($filename, $outputFilename=null, $overwrite=false)
 
 fix ()
 
 __destruct ()
 

Static Public Member Functions

static factory ($offset, $size, $type)
 
static getInstance ()
 

Detailed Description

Definition at line 103 of file Moovrelocator.class.php.

Constructor & Destructor Documentation

◆ __destruct()

Moovrelocator::__destruct ( )

gets called on garbage collecting (object destroyed)

destruct method - gets called when instance of this class get collected from garbage collector. close the open filehandel on destruction.

Returns
void @access public
Author
Benjamin Carl phpfl.nosp@m.uest.nosp@m.erer@.nosp@m.goog.nosp@m.lemai.nosp@m.l.co.nosp@m.m
Version
0.1
Since
Method available since Release 0.1

Definition at line 809 of file Moovrelocator.class.php.

Member Function Documentation

◆ factory()

static Moovrelocator::factory (   $offset,
  $size,
  $type 
)
static

factory for creating atom object instances

factory for creating atom object instances

Parameters
integer$offsetThe offset of the atom (in bytes)
integer$sizeThe size of the atom (in bytes)
string$typeThe type of the atom
Returns
object An instance of the Atom-class
Author
Benjamin Carl phpfl.nosp@m.uest.nosp@m.erer@.nosp@m.goog.nosp@m.lemai.nosp@m.l.co.nosp@m.m
Version
0.1
Since
Method available since Release 0.1 @access public

Definition at line 720 of file Moovrelocator.class.php.

◆ fix()

Moovrelocator::fix ( )

fix moov-atom location

fix moov-atom location

Returns
mixed True if everything wents fine, otherwise error-message as string
Author
Benjamin Carl phpfl.nosp@m.uest.nosp@m.erer@.nosp@m.goog.nosp@m.lemai.nosp@m.l.co.nosp@m.m
Version
0.1
Since
Method available since Release 0.1 @access public

Definition at line 431 of file Moovrelocator.class.php.

◆ getInstance()

static Moovrelocator::getInstance ( )
static

instance singleton requester

method for singleton instantiation of this class

Returns
object Instance of this class
Author
Benjamin Carl phpfl.nosp@m.uest.nosp@m.erer@.nosp@m.goog.nosp@m.lemai.nosp@m.l.co.nosp@m.m
Version
0.1
Since
Method available since Release 0.1 @access public

Definition at line 769 of file Moovrelocator.class.php.

◆ relocateMoovAtom()

Moovrelocator::relocateMoovAtom (   $filename,
  $outputFilename = null,
  $overwrite = false 
)

input, output and fix call - shortcut

input, output and fix call - shortcut

Parameters
string$filenameThe input filename
string$outputFilenameThe output filename
boolean$overwriteThe overwrite status
Returns
mixed True if everything wents fine, otherwise error-message as string
Author
Benjamin Carl phpfl.nosp@m.uest.nosp@m.erer@.nosp@m.goog.nosp@m.lemai.nosp@m.l.co.nosp@m.m
Version
0.1
Since
Method available since Release 0.1 @access public

Definition at line 389 of file Moovrelocator.class.php.

◆ setInput()

Moovrelocator::setInput (   $filename = null)

sets the input file to process

this method sets the input file

Parameters
string$filenameThe input file to fix
Returns
mixed The error-message (string) if opening the inputfile failed, otherwise TRUE
Author
Benjamin Carl phpfl.nosp@m.uest.nosp@m.erer@.nosp@m.goog.nosp@m.lemai.nosp@m.l.co.nosp@m.m
Version
0.1
Since
Method available since Release 0.1 @access public

Definition at line 210 of file Moovrelocator.class.php.

◆ setOutput()

Moovrelocator::setOutput (   $filename)

set output file

set output file

Parameters
string$filenameThe filename ( + path) to put result (fixed data) in
Returns
boolean True if everything wents fine, otherwise false
Author
Benjamin Carl phpfl.nosp@m.uest.nosp@m.erer@.nosp@m.goog.nosp@m.lemai.nosp@m.l.co.nosp@m.m
Version
0.1
Since
Method available since Release 0.1 @access public

Definition at line 364 of file Moovrelocator.class.php.


The documentation for this class was generated from the following file: