![]() |
- Developper API
2.0.5
|
A Winery is an AbstractDataObject. It contains all information about a single winery. Mostly made up of properties, it s also possible to get other AbstractDataObject (Wine, Owner, Range) concerning the Winery. More...
Public Member Functions | |
__construct ($id, $type, $xmlObject, $language) | |
Winery constructor. | |
getName () | |
Return the name as Property object. | |
getWebSite () | |
Return the website as Property object. | |
getShop () | |
Return the shop as Property object. | |
getFacebook () | |
Return the facebook as Property object. | |
getTwitter () | |
Return the twitter as Property object. | |
getBlog () | |
Return the blog as Property object. | |
getAddress () | |
Return the address as Property object. | |
getPostcode () | |
Return the postcode as Property object. | |
getCity () | |
Return the city as Property object. | |
getCountry () | |
Return the country as Property object. | |
getPhone () | |
Return the phone as Property object. | |
getFax () | |
Return the fax as Property object. | |
getLogo () | |
Return the logo as Property object. | |
getEmail () | |
Return the email as Property object. | |
getContent () | |
Return the content as Property object. | |
getVincods () | |
Return the vincods as Property Array. | |
getWines () | |
Return the winery's wines as Wine array or false if Wine [] cannot be instanciated. | |
getRanges () | |
Return the winery's ranges as Range array or false if Range [] cannot be instanciated. | |
getOwner () | |
Return the winery's owner as Owner object or false if Owner cannot be instanciated. | |
getPresentation () | |
Return the vincods as Property Array. | |
Protected Member Functions | |
isCustomProperties ($propertyName) | |
Must be implemented in subclasses and is used to know whether a property is custom or defined. |
A Winery is an AbstractDataObject. It contains all information about a single winery. Mostly made up of properties, it s also possible to get other AbstractDataObject (Wine, Owner, Range) concerning the Winery.
__construct | ( | $ | id, |
$ | type, | ||
$ | xmlObject, | ||
$ | language | ||
) |
Winery constructor.
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. |
Reimplemented from AbstractDataObject.
Reimplemented in Range.
Definition at line 47 of file Winery.php.
getAddress | ( | ) | [final] |
Return the address as Property object.
Definition at line 123 of file Winery.php.
getBlog | ( | ) | [final] |
Return the blog as Property object.
Definition at line 117 of file Winery.php.
getCity | ( | ) | [final] |
Return the city as Property object.
Definition at line 135 of file Winery.php.
getContent | ( | ) | [final] |
Return the content as Property object.
Definition at line 171 of file Winery.php.
getCountry | ( | ) | [final] |
Return the country as Property object.
Definition at line 141 of file Winery.php.
getEmail | ( | ) | [final] |
Return the email as Property object.
Definition at line 165 of file Winery.php.
getFacebook | ( | ) | [final] |
Return the facebook as Property object.
Definition at line 105 of file Winery.php.
getFax | ( | ) | [final] |
Return the fax as Property object.
Definition at line 153 of file Winery.php.
getLogo | ( | ) | [final] |
Return the logo as Property object.
Definition at line 159 of file Winery.php.
getName | ( | ) | [final] |
Return the name as Property object.
Definition at line 87 of file Winery.php.
getOwner | ( | ) | [final] |
Return the winery's owner as Owner object or false if Owner cannot be instanciated.
Definition at line 209 of file Winery.php.
getPhone | ( | ) | [final] |
Return the phone as Property object.
Definition at line 147 of file Winery.php.
getPostcode | ( | ) | [final] |
Return the postcode as Property object.
Definition at line 129 of file Winery.php.
getPresentation | ( | ) | [final] |
getRanges | ( | ) | [final] |
Return the winery's ranges as Range array or false if Range [] cannot be instanciated.
Definition at line 196 of file Winery.php.
getShop | ( | ) | [final] |
Return the shop as Property object.
Definition at line 99 of file Winery.php.
getTwitter | ( | ) | [final] |
Return the twitter as Property object.
Definition at line 111 of file Winery.php.
getVincods | ( | ) | [final] |
getWebSite | ( | ) | [final] |
Return the website as Property object.
Definition at line 93 of file Winery.php.
getWines | ( | ) | [final] |
Return the winery's wines as Wine array or false if Wine [] cannot be instanciated.
Definition at line 183 of file Winery.php.
isCustomProperties | ( | $ | label | ) | [protected] |
Must be implemented in subclasses and is used to know whether a property is custom or defined.
Reimplemented from AbstractDataObject.
Definition at line 54 of file Winery.php.