function SWFObject::__construct in SWF Embed 7
Same name and namespace in other branches
- 6 swfembed.module \SWFObject::__construct()
Constructor
Parameters
$flash_object: The path to the flash object (swf). No checking is done on this path.
File
- ./
swfembed.module, line 181 - The main file for swfembed.
Class
- SWFObject
- Generic data object for describing an SWF configuration.
Code
function __construct($flash_object) {
$this->flashObject = $flash_object;
$id_counter =& drupal_static('swfembed_id_counter', 1);
// We use an underscore so that this can be accessed as an object
// property in JS.
$this->id = 'swf_' . $id_counter++;
}