- Developper API  2.0.5
Winery Class Reference

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...

Inheritance diagram for Winery:
AbstractDataObject Range

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.

Detailed Description

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.

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

Constructor & Destructor Documentation

__construct ( id,
type,
xmlObject,
language 
)

Winery constructor.

Parameters:
Stringid is what will be used to identify the object and query other objects.
TYPEtype relates to the pseudo-enum TYPE from AbstractDataObject and refer to the object type.
SimpleXMLElementxmlObject represents the object on which queries will be done.
Stringlanguage is the language in which the first query has been done.
Returns:
Winery

Reimplemented from AbstractDataObject.

Reimplemented in Range.

Definition at line 47 of file Winery.php.


Member Function Documentation

getAddress ( ) [final]

Return the address as Property object.

Returns:
Property / false

Definition at line 123 of file Winery.php.

getBlog ( ) [final]

Return the blog as Property object.

Returns:
Property / false

Definition at line 117 of file Winery.php.

getCity ( ) [final]

Return the city as Property object.

Returns:
Property / false

Definition at line 135 of file Winery.php.

getContent ( ) [final]

Return the content as Property object.

Returns:
Property / false

Definition at line 171 of file Winery.php.

getCountry ( ) [final]

Return the country as Property object.

Returns:
Property / false

Definition at line 141 of file Winery.php.

getEmail ( ) [final]

Return the email as Property object.

Returns:
Property / false

Definition at line 165 of file Winery.php.

getFacebook ( ) [final]

Return the facebook as Property object.

Returns:
Property / false

Definition at line 105 of file Winery.php.

getFax ( ) [final]

Return the fax as Property object.

Returns:
Property / false

Definition at line 153 of file Winery.php.

getLogo ( ) [final]

Return the logo as Property object.

Returns:
Property / false

Definition at line 159 of file Winery.php.

getName ( ) [final]

Return the name as Property object.

Returns:
Property / false

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.

Returns:
Owner / false

Definition at line 209 of file Winery.php.

getPhone ( ) [final]

Return the phone as Property object.

Returns:
Property / false

Definition at line 147 of file Winery.php.

getPostcode ( ) [final]

Return the postcode as Property object.

Returns:
Property / false

Definition at line 129 of file Winery.php.

getPresentation ( ) [final]

Return the vincods as Property Array.

Returns:
Property[]

Definition at line 222 of file Winery.php.

getRanges ( ) [final]

Return the winery's ranges as Range array or false if Range [] cannot be instanciated.

Returns:
Range[]

Definition at line 196 of file Winery.php.

getShop ( ) [final]

Return the shop as Property object.

Returns:
Property / false

Definition at line 99 of file Winery.php.

getTwitter ( ) [final]

Return the twitter as Property object.

Returns:
Property / false

Definition at line 111 of file Winery.php.

getVincods ( ) [final]

Return the vincods as Property Array.

Returns:
Property[]

Definition at line 177 of file Winery.php.

getWebSite ( ) [final]

Return the website as Property object.

Returns:
Property / false

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.

Returns:
Wine[]

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.

Returns:
Boolean

Reimplemented from AbstractDataObject.

Definition at line 54 of file Winery.php.


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