- Developper API  2.0.5
Owner Class Reference

An Owner is an AbstractDataObject. It contains all information about a single owner. Mostly made up of properties, it s also possible to get other AbstractDataObject (Wine, Winery, Range) concerning the Owner. More...

Inheritance diagram for Owner:
AbstractDataObject

Public Member Functions

 __construct ($id, $type, $xmlObject, $language)
 Owner constructor.
 getEmail ()
 Return the email as Property object.
 getCompany ()
 Return the company as Property object.
 getAdress ()
 Return the address as Property object.
 getPostcode ()
 Return the postcode as Property object.
 getCity ()
 Return the city as Property object.
 getPhone ()
 Return the phone as Property object.
 getFax ()
 Return the fax as Property object.
 getWebsite ()
 Return the website as Property object.
 getFacebook ()
 Return the facebook as Property object.
 getTwitter ()
 Return the twitter as Property object.
 getLogo ()
 Return the logo as Property object.
 getPresentation ()
 Return the presentation as Property object.
 getRanges ()
 Return the owner's ranges as Range array or false if Range [] cannot be instanciated.
 getWineries ()
 Return the owner's wineries as Winery array or false if Winery [] cannot be instanciated.
 getWines ()
 Return the owner's wines as Wine array or false if Wine [] cannot be instanciated.

Protected Member Functions

 isCustomProperties ($label)
 Must be implemented in subclasses and is used to know whether a property is custom or defined.

Detailed Description

An Owner is an AbstractDataObject. It contains all information about a single owner. Mostly made up of properties, it s also possible to get other AbstractDataObject (Wine, Winery, Range) concerning the Owner.

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

Constructor & Destructor Documentation

__construct ( id,
type,
xmlObject,
language 
)

Owner 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:
Owner

Reimplemented from AbstractDataObject.

Definition at line 43 of file Owner.php.


Member Function Documentation

getAdress ( ) [final]

Return the address as Property object.

Returns:
Property

Definition at line 88 of file Owner.php.

getCity ( ) [final]

Return the city as Property object.

Returns:
Property

Definition at line 100 of file Owner.php.

getCompany ( ) [final]

Return the company as Property object.

Returns:
Property

Definition at line 82 of file Owner.php.

getEmail ( ) [final]

Return the email as Property object.

Returns:
Property

Definition at line 76 of file Owner.php.

getFacebook ( ) [final]

Return the facebook as Property object.

Returns:
Property

Definition at line 124 of file Owner.php.

getFax ( ) [final]

Return the fax as Property object.

Returns:
Property

Definition at line 112 of file Owner.php.

getLogo ( ) [final]

Return the logo as Property object.

Returns:
Property

Definition at line 136 of file Owner.php.

getPhone ( ) [final]

Return the phone as Property object.

Returns:
Property

Definition at line 106 of file Owner.php.

getPostcode ( ) [final]

Return the postcode as Property object.

Returns:
Property

Definition at line 94 of file Owner.php.

getPresentation ( ) [final]

Return the presentation as Property object.

Returns:
Property

Definition at line 142 of file Owner.php.

getRanges ( ) [final]

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

Returns:
Range[]

Definition at line 148 of file Owner.php.

getTwitter ( ) [final]

Return the twitter as Property object.

Returns:
Property

Definition at line 130 of file Owner.php.

getWebsite ( ) [final]

Return the website as Property object.

Returns:
Property

Definition at line 118 of file Owner.php.

getWineries ( ) [final]

Return the owner's wineries as Winery array or false if Winery [] cannot be instanciated.

Returns:
Winery[]

Definition at line 161 of file Owner.php.

getWines ( ) [final]

Return the owner's wines as Wine array or false if Wine [] cannot be instanciated.

Returns:
Wine[]

Definition at line 174 of file Owner.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 49 of file Owner.php.


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