- Developper API  2.0.5
Media Class Reference

The Media class is a kind of DataStructure. Those objects are usually embedded inside Wine object. More...

Inheritance diagram for Media:
DataStructure

Public Member Functions

 __construct ($name, $type, $url, $zone, $preview)
 Media constructor.

Static Public Member Functions

static getMediaFromSXMLElement ($node)
 Build a Media object from a SimpleXMLElement node. It may return false if the node doesn t contain a media.
static isSXMLNodeProperty ($node)
 Check whether a node is acceptable to get a Media from.

Detailed Description

The Media class is a kind of DataStructure. Those objects are usually embedded inside Wine object.

Author:
Thomas
Version:
1.0
Date:
08/12/2011

Constructor & Destructor Documentation

__construct ( name,
type,
url,
zone,
preview 
)

Media constructor.

Parameters:
Stringname
Stringtype
Stringurl
Stringzone
Stringpreview
Returns:
Media

Reimplemented from DataStructure.

Definition at line 33 of file Media.php.


Member Function Documentation

static getMediaFromSXMLElement ( node) [static, final]

Build a Media object from a SimpleXMLElement node. It may return false if the node doesn t contain a media.

Parameters:
SimpleXmlElementnode
Returns:
Media / false

Definition at line 43 of file Media.php.

static isSXMLNodeProperty ( node) [static, final]

Check whether a node is acceptable to get a Media from.

Parameters:
SimpleXmlElementnode
Returns:
Boolean

Definition at line 90 of file Media.php.


The documentation for this class was generated from the following file: