Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
Representative Class Reference
Inheritance diagram for Representative:
DataObject

Public Member Functions

 getEmail ()
 
 getFax ()
 
 getIsSupplier ()
 
 getMonographId ()
 
 getName ()
 
 getNameForONIXCode ()
 
 getPhone ()
 
 getRepresentativeIdType ()
 
 getRepresentativeIdValue ()
 
 getRole ()
 
 getUrl ()
 
 Representative ()
 
 setEmail ($email)
 
 setFax ($fax)
 
 setIsSupplier ($isSupplier)
 
 setMonographId ($monographId)
 
 setName ($name)
 
 setPhone ($phone)
 
 setRepresentativeIdType ($representativeIdType)
 
 setRepresentativeIdValue ($representativeIdValue)
 
 setRole ($role)
 
 setUrl ($url)
 
- Public Member Functions inherited from DataObject
 addSupportedMetadataAdapter ($metadataAdapter)
 
 DataObject ()
 
 extractMetadata ($metadataSchema)
 
 getAdditionalMetadataFieldNames ()
 
getAllData ()
 
getData ($key, $locale=null)
 
 getHasLoadableAdapters ()
 
 getId ()
 
 getLocaleMetadataFieldNames ()
 
getLocalizedData ($key)
 
 getMetadataFieldNames ($translated=true)
 
 getSetMetadataFieldNames ($translated=true)
 
 getSupportedExtractionAdapters ()
 
 getSupportedInjectionAdapters ()
 
 getSupportedMetadataSchemas ()
 
 hasData ($key, $locale=null)
 
 injectMetadata ($metadataDescription)
 
 removeSupportedMetadataAdapter ($metadataSchemaName)
 
 setAllData (&$data)
 
 setData ($key, $value, $locale=null)
 
 setHasLoadableAdapters ($hasLoadableAdapters)
 
 setId ($id)
 
 upcastTo ($targetObject)
 

Additional Inherited Members

- Public Attributes inherited from DataObject
 $_data = array()
 
 $_extractionAdaptersLoaded = false
 
 $_hasLoadableAdapters = false
 
 $_injectionAdaptersLoaded = false
 
 $_metadataExtractionAdapters = array()
 
 $_metadataInjectionAdapters = array()
 

Detailed Description

Basic class describing a representative composite type (used on the ONIX templates for publication formats). This type is used for both Agents and Suppliers.

See Also
RepresentativeDAO

Definition at line 17 of file Representative.inc.php.

Member Function Documentation

Representative::getEmail ( )

Get the representative email address.

Returns
string

Definition at line 157 of file Representative.inc.php.

References DataObject\getData().

Representative::getFax ( )

Get the representative fax.

Returns
string

Definition at line 141 of file Representative.inc.php.

References DataObject\getData().

Representative::getIsSupplier ( )

Get the representative's is_supplier setting.

Returns
int

Definition at line 189 of file Representative.inc.php.

References DataObject\getData().

Referenced by getNameForONIXCode().

Representative::getMonographId ( )

get monograph id.

Returns
int

Definition at line 29 of file Representative.inc.php.

References DataObject\getData().

Representative::getName ( )

Get the representative name.

Returns
string

Definition at line 109 of file Representative.inc.php.

References DataObject\getData().

Representative::getNameForONIXCode ( )

Get the human readable name for this ONIX code

Returns
string

Definition at line 61 of file Representative.inc.php.

References DAORegistry\getDAO(), getIsSupplier(), and getRole().

Representative::getPhone ( )

Get the representative phone.

Returns
string

Definition at line 125 of file Representative.inc.php.

References DataObject\getData().

Representative::getRepresentativeIdType ( )

Get the representative ID type (ONIX Code).

Returns
string

Definition at line 85 of file Representative.inc.php.

References DataObject\getData().

Representative::getRepresentativeIdValue ( )

Get the representative ID value.

Returns
string

Definition at line 101 of file Representative.inc.php.

References DataObject\getData().

Representative::getRole ( )

Get the ONIX code for this representative role.

Returns
string

Definition at line 53 of file Representative.inc.php.

References DataObject\getData().

Referenced by getNameForONIXCode().

Representative::getUrl ( )

Get the representative's url.

Returns
string

Definition at line 173 of file Representative.inc.php.

References DataObject\getData().

Representative::Representative ( )

Constructor

Definition at line 21 of file Representative.inc.php.

Representative::setEmail (   $email)

Set the representative email address.

Parameters
string$email

Definition at line 165 of file Representative.inc.php.

References DataObject\setData().

Representative::setFax (   $fax)

Set the representative fax.

Parameters
string$fax

Definition at line 149 of file Representative.inc.php.

References DataObject\setData().

Representative::setIsSupplier (   $isSupplier)

Set the representative's is_supplier setting.

Parameters
int$isSupplier

Definition at line 197 of file Representative.inc.php.

References DataObject\setData().

Representative::setMonographId (   $monographId)

set monograph id.

Parameters
$monographIdint

Definition at line 37 of file Representative.inc.php.

References DataObject\setData().

Representative::setName (   $name)

Set the representative name.

Parameters
string$name

Definition at line 117 of file Representative.inc.php.

References DataObject\setData().

Representative::setPhone (   $phone)

Set the representative phone.

Parameters
string$phone

Definition at line 133 of file Representative.inc.php.

References DataObject\setData().

Representative::setRepresentativeIdType (   $representativeIdType)

Set the ONIX code for this representative's ID type (List92) (GLN, SAN, etc). GLN is the recommended one.

Parameters
$representativeIdTypestring

Definition at line 77 of file Representative.inc.php.

References DataObject\setData().

Representative::setRepresentativeIdValue (   $representativeIdValue)

Set this representative's ID value.

Parameters
$representativeIdValuestring

Definition at line 93 of file Representative.inc.php.

References DataObject\setData().

Representative::setRole (   $role)

Set the ONIX code for this representative role (List93 for Suppliers, List69 for Agents)

Parameters
$typestring

Definition at line 45 of file Representative.inc.php.

References DataObject\setData().

Representative::setUrl (   $url)

Set the representative url.

Parameters
string$url

Definition at line 181 of file Representative.inc.php.

References DataObject\setData().


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