Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
MetadataDescriptionDAO Class Reference
Inheritance diagram for MetadataDescriptionDAO:
DAO

Public Member Functions

_fromRow (&$row)
 
_newDataObject ($metadataSchemaNamespace, $metadataSchemaName, $assocType)
 
_resolveSchemaIdentifierToMetadataSchemaName ($metadataSchemaId)
 
 _updateObjectMetadata (&$metadataDescription)
 
 deleteObject (&$metadataDescription)
 
 deleteObjectById ($metadataDescriptionId)
 
 deleteObjectsByAssocId ($assocType, $assocId)
 
 getInsertId ()
 
getObjectById ($metadataDescriptionId)
 
getObjectsByAssocId ($assocType, $assocId, $rangeInfo=null)
 
 insertObject (&$metadataDescription)
 
 MetadataDescriptionDAO ()
 
 updateObject (&$metadataDescription)
 
- Public Member Functions inherited from DAO
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 DAO ($dataSource=null, $callHooks=true)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAffectedRows ()
 
 getDataChangedEvent ($elementId=null, $parentElementId=null)
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getInsertId ($table= '', $id= '', $callHooks=true)
 
 getType ($value)
 
 replace ($table, $arrFields, $keyCols)
 
retrieve ($sql, $params=false, $callHooks=true)
 
retrieveCached ($sql, $params=false, $secsToCache=3600, $callHooks=true)
 
retrieveLimit ($sql, $params=false, $numRows=false, $offset=false, $callHooks=true)
 
retrieveRange ($sql, $params=false, $dbResultRange=null, $callHooks=true)
 
 setCacheDir ()
 
 setDataSource (&$dataSource)
 
 update ($sql, $params=false, $callHooks=true, $dieOnError=true)
 
 updateDataObjectSettings ($tableName, &$dataObject, $idArray)
 

Additional Inherited Members

- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

Operations for retrieving and modifying MetadataDescription objects.

See Also
MetadataDescription

Definition at line 20 of file MetadataDescriptionDAO.inc.php.

Member Function Documentation

& MetadataDescriptionDAO::_fromRow ( $row)

Internal function to return a meta-data description object from a row.

Parameters
$rowarray
Returns
MetadataDescription

Definition at line 219 of file MetadataDescriptionDAO.inc.php.

References _newDataObject().

Referenced by getObjectById().

& MetadataDescriptionDAO::_newDataObject (   $metadataSchemaNamespace,
  $metadataSchemaName,
  $assocType 
)

Construct a new meta-data description object based on the schema identifiers passed into this method.

Parameters
$metadataSchemaNamespacestring
$metadataSchemaNamestring
$assocTypeinteger
Returns
MetadataDescription

Definition at line 207 of file MetadataDescriptionDAO.inc.php.

References _resolveSchemaIdentifierToMetadataSchemaName().

Referenced by _fromRow().

& MetadataDescriptionDAO::_resolveSchemaIdentifierToMetadataSchemaName (   $metadataSchemaId)

Identify the meta-data schema class that corresponds to the schema identifiers passed into this method.

FIXME: This information should come from a central meta-data schema registry.

Parameters
$metadataSchemaIdstring
Returns
string

Definition at line 184 of file MetadataDescriptionDAO.inc.php.

Referenced by _newDataObject().

MetadataDescriptionDAO::_updateObjectMetadata ( $metadataDescription)

Update the meta-data

Parameters
$metadataDescriptionMetadataDescription

Definition at line 235 of file MetadataDescriptionDAO.inc.php.

References DAO\updateDataObjectSettings().

Referenced by insertObject(), and updateObject().

MetadataDescriptionDAO::deleteObject ( $metadataDescription)

Delete a meta-data description.

Parameters
$metadataDescriptionMetadataDescription
Returns
boolean

Definition at line 129 of file MetadataDescriptionDAO.inc.php.

References deleteObjectById().

MetadataDescriptionDAO::deleteObjectById (   $metadataDescriptionId)

Delete a meta-data description by id.

Parameters
$metadataDescriptionIdint
Returns
boolean

Definition at line 138 of file MetadataDescriptionDAO.inc.php.

References DAO\update().

Referenced by deleteObject(), and deleteObjectsByAssocId().

MetadataDescriptionDAO::deleteObjectsByAssocId (   $assocType,
  $assocId 
)

Delete all meta-data descriptions matching a particular association id.

Parameters
$assocTypeint
$assocIdint
Returns
boolean

Definition at line 150 of file MetadataDescriptionDAO.inc.php.

References deleteObjectById(), and getObjectsByAssocId().

MetadataDescriptionDAO::getInsertId ( )

Get the ID of the last inserted Source Description.

Returns
int

Definition at line 166 of file MetadataDescriptionDAO.inc.php.

Referenced by insertObject().

& MetadataDescriptionDAO::getObjectById (   $metadataDescriptionId)

Retrieve a meta-data description by id.

Parameters
$metadataDescriptionIdinteger
Returns
MetadataDescription

Definition at line 59 of file MetadataDescriptionDAO.inc.php.

References _fromRow(), and DAO\retrieve().

& MetadataDescriptionDAO::getObjectsByAssocId (   $assocType,
  $assocId,
  $rangeInfo = null 
)

Retrieve an array of meta-data descriptions matching a particular association id.

Parameters
$assocTypeint
$assocIdint
$dbResultRangeDBResultRange the desired range
Returns
DAOResultFactory containing matching source descriptions (MetadataDescription objects)

Definition at line 82 of file MetadataDescriptionDAO.inc.php.

References DAO\retrieveRange().

Referenced by deleteObjectsByAssocId().

MetadataDescriptionDAO::insertObject ( $metadataDescription)

Insert a new meta-data description.

Parameters
$metadataDescriptionMetadataDescription
Returns
integer the new metadata description id

Definition at line 34 of file MetadataDescriptionDAO.inc.php.

References _updateObjectMetadata(), getInsertId(), and DAO\update().

MetadataDescriptionDAO::MetadataDescriptionDAO ( )

Constructor

Definition at line 24 of file MetadataDescriptionDAO.inc.php.

MetadataDescriptionDAO::updateObject ( $metadataDescription)

Update an existing meta-data description.

Parameters
$metadataDescriptionMetadataDescription

Definition at line 100 of file MetadataDescriptionDAO.inc.php.

References _updateObjectMetadata(), and DAO\update().


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