Open Monograph Press  3.3.0
Representative Class Reference
Inheritance diagram for Representative:
DataObject

Public Member Functions

 getEmail ()
 
 getIsSupplier ()
 
 getMonographId ()
 
 getName ()
 
 getNameForONIXCode ()
 
 getPhone ()
 
 getRepresentativeIdType ()
 
 getRepresentativeIdValue ()
 
 getRole ()
 
 getUrl ()
 
 setEmail ($email)
 
 setIsSupplier ($isSupplier)
 
 setMonographId ($monographId)
 
 setName ($name)
 
 setPhone ($phone)
 
 setRepresentativeIdType ($representativeIdType)
 
 setRepresentativeIdValue ($representativeIdValue)
 
 setRole ($role)
 
 setUrl ($url)
 
- Public Member Functions inherited from DataObject
 __construct ()
 
 addSupportedMetadataAdapter ($metadataAdapter)
 
 extractMetadata ($metadataSchema)
 
 getAdditionalMetadataFieldNames ()
 
getAllData ()
 
 getDAO ()
 
getData ($key, $locale=null)
 
 getHasLoadableAdapters ()
 
 getId ()
 
 getLocaleMetadataFieldNames ()
 
 getLocalizedData ($key, $preferredLocale=null)
 
 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)
 
 unsetData ($key, $locale=null)
 
 upcastTo ($targetObject)
 

Additional Inherited Members

- Data Fields 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

◆ getEmail()

Representative::getEmail ( )

Get the representative email address.

Returns
string

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

References DataObject\getData().

◆ getIsSupplier()

Representative::getIsSupplier ( )

Get the representative's is_supplier setting.

Returns
int

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

References DataObject\getData().

Referenced by getNameForONIXCode().

◆ getMonographId()

Representative::getMonographId ( )

get monograph id.

Returns
int

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

References DataObject\getData().

◆ getName()

Representative::getName ( )

Get the representative name.

Returns
string

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

References DataObject\getData().

◆ getNameForONIXCode()

Representative::getNameForONIXCode ( )

Get the human readable name for this ONIX code

Returns
string

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

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

◆ getPhone()

Representative::getPhone ( )

Get the representative phone.

Returns
string

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

References DataObject\getData().

◆ getRepresentativeIdType()

Representative::getRepresentativeIdType ( )

Get the representative ID type (ONIX Code).

Returns
string

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

References DataObject\getData().

◆ getRepresentativeIdValue()

Representative::getRepresentativeIdValue ( )

Get the representative ID value.

Returns
string

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

References DataObject\getData().

◆ getRole()

Representative::getRole ( )

Get the ONIX code for this representative role.

Returns
string

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

References DataObject\getData().

Referenced by getNameForONIXCode().

◆ getUrl()

Representative::getUrl ( )

Get the representative's url.

Returns
string

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

References DataObject\getData().

◆ setEmail()

Representative::setEmail (   $email)

Set the representative email address.

Parameters
string$email

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

References DataObject\setData().

◆ setIsSupplier()

Representative::setIsSupplier (   $isSupplier)

Set the representative's is_supplier setting.

Parameters
int$isSupplier

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

References DataObject\setData().

◆ setMonographId()

Representative::setMonographId (   $monographId)

set monograph id.

Parameters
$monographIdint

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

References DataObject\setData().

◆ setName()

Representative::setName (   $name)

Set the representative name.

Parameters
string$name

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

References DataObject\setData().

◆ setPhone()

Representative::setPhone (   $phone)

Set the representative phone.

Parameters
string$phone

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

References DataObject\setData().

◆ setRepresentativeIdType()

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 69 of file Representative.inc.php.

References DataObject\setData().

◆ setRepresentativeIdValue()

Representative::setRepresentativeIdValue (   $representativeIdValue)

Set this representative's ID value.

Parameters
$representativeIdValuestring

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

References DataObject\setData().

◆ setRole()

Representative::setRole (   $role)

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

Parameters
$typestring

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

References DataObject\setData().

◆ setUrl()

Representative::setUrl (   $url)

Set the representative url.

Parameters
string$url

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

References DataObject\setData().


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