src/Object/MediaObject.php
public function setAttribute($param, $value = null) {
		if (!empty($this->_stub['iframe-player']) && $this->config['prefer'] === 'iframe') {
			if (is_array($param)) {
				foreach ($param as $p => $v) {
					$this->_iframeAttributes[$p] = $v;
				}

			} else {
				$this->_iframeAttributes[$param] = $value;
			}
		} else {
			if (is_array($param)) {
				foreach ($param as $p => $v) {
					$this->_objectAttributes[$p] = $v;
				}

			} else {
				$this->_objectAttributes[$param] = $value;
			}
		}
		return $this;
	}
public function setAttribute($param, $value = null) {
		if (!empty($this->_stub['iframe-player']) && $this->config['prefer'] === 'iframe') {
			if (is_array($param)) {
				foreach ($param as $p => $v) {
					$this->_iframeAttributes[$p] = $v;
				}

			} else {
				$this->_iframeAttributes[$param] = $value;
			}
		} else {
			if (is_array($param)) {
				foreach ($param as $p => $v) {
					$this->_objectAttributes[$p] = $v;
				}

			} else {
				$this->_objectAttributes[$param] = $value;
			}
		}
		return $this;
	}
public function setAttribute ( $ param , $ value = null ) { if ( ! empty ( $ this -> _stub [ 'iframe-player' ] ) && $ this -> config [ 'prefer' ] === 'iframe' ) { if ( is_array ( $ param ) ) { foreach ( $ param as $ p => $ v ) { $ this -> _iframeAttributes [ $ p ] = $ v ; } } else { $ this -> _iframeAttributes [ $ param ] = $ value ; } } else { if ( is_array ( $ param ) ) { foreach ( $ param as $ p => $ v ) { $ this -> _objectAttributes [ $ p ] = $ v ; } } else { $ this -> _objectAttributes [ $ param ] = $ value ; } } return $ this ; }
Override a default object attribute value

@param mixed $param  The name of the attribute to be set
or an array of multiple attribs to be set
@param string|int|null $value (optional) the value to set the param to
if only one param is being set
@return $this
Override a default object attribute value