A Wine is an AbstractDataObject. It contains all information about a single wine. Mostly made up of properties and DataStructure objects (Media, Shop, Recipe) and others such as Review, Variety, VintageProperty and WEObject. It s also possible to get other AbstractDataObject (Owner, Winery, Range) concerning the Wine.
More...
Detailed Description
A Wine is an AbstractDataObject. It contains all information about a single wine. Mostly made up of properties and DataStructure objects (Media, Shop, Recipe) and others such as Review, Variety, VintageProperty and WEObject. It s also possible to get other AbstractDataObject (Owner, Winery, Range) concerning the Wine.
- Author:
- Thomas
- Version:
- 1.0
- Date:
- 08/12/2011
Constructor & Destructor Documentation
__construct |
( |
$ |
id, |
|
|
$ |
type, |
|
|
$ |
xmlObject, |
|
|
$ |
language |
|
) |
| |
Wine constructor.
- Parameters:
-
String | id is what will be used to identify the object and query other objects. |
TYPE | type relates to the pseudo-enum TYPE from AbstractDataObject and refer to the object type. |
SimpleXMLElement | xmlObject represents the object on which queries will be done. |
String | language is the language in which the first query has been done. |
- Returns:
- Wine
Reimplemented from AbstractDataObject.
Definition at line 52 of file Wine.php.
Member Function Documentation
getAbsoluteVincod |
( |
| ) |
[final] |
Return either vincodperso if not empty or vincod.
- Returns:
- Property / false
Definition at line 110 of file Wine.php.
getAppellation |
( |
| ) |
[final] |
getAvailableLanguages |
( |
| ) |
[final] |
Return all available languages for the wine.
- Returns:
- String[]
Definition at line 518 of file Wine.php.
getDateUpdate |
( |
| ) |
[final] |
getGrapesVarieties |
( |
| ) |
[final] |
getOtherLanguage |
( |
$ |
lang | ) |
[final] |
Return other wine in other language or false if queried language not valid.
- Returns:
- Wine / false
Definition at line 504 of file Wine.php.
getOtherVintages |
( |
| ) |
[final] |
Return the wine's owner as Owner object or false if Owner cannot be instanciated.
- Returns:
- Owner / false
Definition at line 452 of file Wine.php.
getPresentation |
( |
| ) |
[final] |
Return the wine's range as Range object or false if Range cannot be instanciated.
- Returns:
- Range / false
Definition at line 478 of file Wine.php.
getSpecifications |
( |
| ) |
[final] |
getVincodPerso |
( |
| ) |
[final] |
getVintageProperty |
( |
| ) |
[final] |
getVintageYear |
( |
| ) |
[final] |
Return the WEs.
- Returns:
- WE[]
Definition at line 416 of file Wine.php.
Return the wine's winery as Winery object or false if Winery cannot be instanciated.
- Returns:
- Winery / false
Definition at line 465 of file Wine.php.
isCustomProperties |
( |
$ |
label | ) |
[protected] |
Must be implemented in subclasses and is used to know whether a property is custom or defined.
- Returns:
- Boolean
Reimplemented from AbstractDataObject.
Definition at line 59 of file Wine.php.
Return whether or not the wine is a Vintage.
- Returns:
- Boolean
Definition at line 195 of file Wine.php.
The documentation for this class was generated from the following file: