- Developper API  2.0.5
VintageProperty Class Reference

The VintageProperty class is a data structure that contains Vintage information. Those objects are usually embedded inside Wine object. More...

Public Member Functions

 __construct ($vincod, $vintageyear, $qrcode, $picture, $vinogusto)
 VintageProperty constructor.
 getVincod ()
 Returns the vintage property's vincod as String or false if empty.
 getVintageYear ()
 Returns the vintage property's vintageyear as String or false if empty.
 getQRCode ()
 Returns the vintage property's qrcode as String or false if empty.
 getPicture ()
 Returns the vintage property's picture as String or false if empty.
 getVinogusto ()
 Returns the vintage property's vinogusto as String or false if empty.

Static Public Member Functions

static getVintagePropertyFromSXMLElement ($vincod, $node)
 Build a VintageProperty object from a SimpleXMLElement node. It may return false if the node doesn t contain a vintage property.
static isSXMLNodeProperty ($node)
 Check whether a node is acceptable to get a VintageProperty from.

Detailed Description

The VintageProperty class is a data structure that contains Vintage information. Those objects are usually embedded inside Wine object.

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

Constructor & Destructor Documentation

__construct ( vincod,
vintageyear,
qrcode,
picture,
vinogusto 
)

VintageProperty constructor.

Parameters:
Stringvincod
Stringvintageyear
Stringqrcode
Stringpicture
Stringvinogusto
Returns:
VintageProperty

Definition at line 35 of file VintageProperty.php.


Member Function Documentation

getPicture ( ) [final]

Returns the vintage property's picture as String or false if empty.

Returns:
String / false

Definition at line 75 of file VintageProperty.php.

getQRCode ( ) [final]

Returns the vintage property's qrcode as String or false if empty.

Returns:
String / false

Definition at line 66 of file VintageProperty.php.

getVincod ( ) [final]

Returns the vintage property's vincod as String or false if empty.

Returns:
String / false

Definition at line 48 of file VintageProperty.php.

getVinogusto ( ) [final]

Returns the vintage property's vinogusto as String or false if empty.

Returns:
String / false

Definition at line 84 of file VintageProperty.php.

static getVintagePropertyFromSXMLElement ( vincod,
node 
) [static, final]

Build a VintageProperty object from a SimpleXMLElement node. It may return false if the node doesn t contain a vintage property.

Parameters:
SimpleXmlElementnode
Returns:
VintageProperty / false

Definition at line 94 of file VintageProperty.php.

getVintageYear ( ) [final]

Returns the vintage property's vintageyear as String or false if empty.

Returns:
String / false

Definition at line 57 of file VintageProperty.php.

static isSXMLNodeProperty ( node) [static, final]

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

Parameters:
SimpleXmlElementnode
Returns:
Boolean

Definition at line 135 of file VintageProperty.php.


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