PHP-SwfTools API
Class

SwfTools\EmbeddedObject

class EmbeddedObject

Constants

TYPE_SHAPE

TYPE_MOVIECLIP

TYPE_JPEG

TYPE_PNG

TYPE_FRAME

TYPE_SOUND

Methods

__construct(string $option, type $type, int $id)

string getOption()

string getType()

int getId()

static string detectType(string $type)

Detect type based on the raw output

Details

at line 33
public __construct(string $option, type $type, int $id)

Parameters

string $option The option to pass to the command line to extract
type $type The type of embedded object, one of the self::TYPE_* constants
int $id The id of the object

at line 44
public string getOption()

Return Value

string

at line 53
public string getType()

Return Value

string

at line 62
public int getId()

Return Value

int

at line 73
static public string detectType(string $type)

Detect type based on the raw output

Parameters

string $type The raw output

Return Value

string