You are here

public function SWFObject::toArray in SWF Embed 6

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

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.

Return value

An associative array for serializing to JavaScript.

File

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

Class

SWFObject
Generic data object for describing an SWF configuration.

Code

public function toArray() {
  return array(
    'height' => $this
      ->getHeight(),
    'width' => $this
      ->getWidth(),
    'flashvars' => $this
      ->getFlashVars(),
    'params' => $this
      ->getParams(),
    //'noflash' => $this->getNoFlash(),
    'url' => $this
      ->getFlashObject(),
    'expressInstall' => $this
      ->getExpressRedirectURL(),
    'version' => $this
      ->getMinimumVersion(),
  );
}