You are here

public function SWFObject::getWidth in SWF Embed 7

Same name and namespace in other branches
  1. 6 swfembed.module \SWFObject::getWidth()

Returns the width the SWF file should use.

If no width has been specified explicitly, the system will try to determine the proper width based on the file if it can.

Return value

The width of the SWF file in pixels.

1 call to SWFObject::getWidth()
SWFObject::toArray in ./swfembed.module
Convert this to an array ready for serializing. This is a special-purpose method for turning this object into a configuration array. It is not a general purpose serialization method.

File

./swfembed.module, line 267
The main file for swfembed.

Class

SWFObject
Generic data object for describing an SWF configuration.

Code

public function getWidth() {
  return $this
    ->getDimension('width');
}