ocs  2.3.6
About: OCS (Open Conference System) is a Web publishing tool that will create a complete Web presence for your scholarly conference.
  Fossies Dox: ocs-2.3.6.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

RTDAO Class Reference

DAO operations for the OCS Reading Tools interface. More...

Inheritance diagram for RTDAO:
Collaboration diagram for RTDAO:

Public Member Functions

getConferenceRTByConference (&$conference)
 
 updateConferenceRT (&$rt)
 
 insertConferenceRT (&$rt)
 
getVersions ($conferenceId, $pagingInfo=null)
 
getVersion ($versionId, $conferenceId)
 
 insertVersion ($conferenceId, &$version)
 
 updateVersion ($conferenceId, &$version)
 
 deleteVersionsByConferenceId ($conferenceId)
 
 deleteVersion ($versionId, $conferenceId)
 
 deleteVersionsByConference ($conferenceId)
 
_returnVersionFromRow (&$row)
 
_returnSearchFromRow (&$row)
 
getContext ($contextId)
 
getContexts ($versionId, $pagingInfo=null)
 
 insertContext (&$context)
 
 updateContext (&$context)
 
 deleteContextsByVersionId ($versionId)
 
 deleteContext ($contextId, $versionId)
 
 resequenceContexts ($versionId)
 
_returnContextFromRow (&$row)
 
getSearch ($searchId)
 
getSearches ($contextId, $pagingInfo=null)
 
 insertSearch (&$search)
 
 updateSearch (&$search)
 
 deleteSearchesByContextId ($contextId)
 
 deleteSearch ($searchId, $contextId)
 
 resequenceSearches ($contextId)
 
- Public Member Functions inherited from DAO
 DAO ($dataSource=null, $callHooks=true)
 
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)
 
 update ($sql, $params=false, $callHooks=true, $dieOnError=true)
 
 replace ($table, $arrFields, $keyCols)
 
 getInsertId ($table='', $id='', $callHooks=true)
 
 setCacheDir ()
 
 flushCache ()
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 datetimeFromDB ($dt)
 
 dateFromDB ($d)
 
 convertFromDB ($value, $type)
 
 getType ($value)
 
 convertToDB ($value, &$type)
 
 nullOrInt ($value)
 
 getAdditionalFieldNames ()
 
 getLocaleFieldNames ()
 
 updateDataObjectSettings ($tableName, &$dataObject, $idArray)
 
 getDataObjectSettings ($tableName, $idFieldName, $idFieldValue, &$dataObject)
 
 getDriver ()
 
 getDirectionMapping ($direction)
 

Additional Inherited Members

- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

DAO operations for the OCS Reading Tools interface.

See also
RT

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

Member Function Documentation

◆ _returnContextFromRow()

& RTDAO::_returnContextFromRow ( $row)

Return RTContext object from database row.

Parameters
$rowarray
Returns
RTContext

Definition at line 404 of file RTDAO.inc.php.

References HookRegistry\call(), and getSearches().

Referenced by getContext().

◆ _returnSearchFromRow()

& RTDAO::_returnSearchFromRow ( $row)

Return RTSearch object from database row.

Parameters
$rowarray
Returns
RTSearch

Definition at line 234 of file RTDAO.inc.php.

References HookRegistry\call().

Referenced by getSearch().

◆ _returnVersionFromRow()

& RTDAO::_returnVersionFromRow ( $row)

Return RTVersion object from database row.

Parameters
$rowarray
Returns
RTVersion

Definition at line 213 of file RTDAO.inc.php.

References HookRegistry\call(), and getContexts().

Referenced by getVersion().

◆ deleteContext()

RTDAO::deleteContext (   $contextId,
  $versionId 
)

Delete a context.

Parameters
$contextIdint
$versionIdint

Definition at line 364 of file RTDAO.inc.php.

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

Referenced by deleteContextsByVersionId().

◆ deleteContextsByVersionId()

RTDAO::deleteContextsByVersionId (   $versionId)

Delete all contexts by version ID.

Parameters
$versionIdint

Definition at line 349 of file RTDAO.inc.php.

References deleteContext(), and getContexts().

Referenced by deleteVersion().

◆ deleteSearch()

RTDAO::deleteSearch (   $searchId,
  $contextId 
)

Delete a search.

Parameters
$searchIdint
$contextIdint

Definition at line 535 of file RTDAO.inc.php.

References DAO\update().

◆ deleteSearchesByContextId()

RTDAO::deleteSearchesByContextId (   $contextId)

Delete all searches by context ID.

Parameters
$contextIdint

Definition at line 523 of file RTDAO.inc.php.

References DAO\update().

Referenced by deleteContext().

◆ deleteVersion()

RTDAO::deleteVersion (   $versionId,
  $conferenceId 
)

Delete a version.

Parameters
$versionIdint
$conferenceIdint

Definition at line 188 of file RTDAO.inc.php.

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

Referenced by deleteVersionsByConference(), and deleteVersionsByConferenceId().

◆ deleteVersionsByConference()

RTDAO::deleteVersionsByConference (   $conferenceId)

Delete RT versions (and dependent entities) by conference ID.

Parameters
$conferenceIdint

Definition at line 200 of file RTDAO.inc.php.

References deleteVersion(), and getVersions().

◆ deleteVersionsByConferenceId()

RTDAO::deleteVersionsByConferenceId (   $conferenceId)

Delete all versions by conference ID.

Parameters
$conferenceIdint

Definition at line 176 of file RTDAO.inc.php.

References deleteVersion(), and getVersions().

◆ getConferenceRTByConference()

& RTDAO::getConferenceRTByConference ( $conference)

Retrieve an RT configuration.

Parameters
$conferenceIdint
Returns
RT

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

References RT\setEnabled().

◆ getContext()

& RTDAO::getContext (   $contextId)

Retrieve an RT context.

Parameters
$contextIdint
Returns
RT

Definition at line 261 of file RTDAO.inc.php.

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

◆ getContexts()

& RTDAO::getContexts (   $versionId,
  $pagingInfo = null 
)

Retrieve all RT contexts for a version (in order).

Parameters
$versionIdint
$pagingInfoobject DBResultRange (optional)
Returns
array RTContext

Definition at line 284 of file RTDAO.inc.php.

References DAO\retrieveRange().

Referenced by _returnVersionFromRow(), and deleteContextsByVersionId().

◆ getSearch()

& RTDAO::getSearch (   $searchId)

Retrieve an RT search.

Parameters
$searchIdint
Returns
RTSearch

Definition at line 436 of file RTDAO.inc.php.

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

◆ getSearches()

& RTDAO::getSearches (   $contextId,
  $pagingInfo = null 
)

Retrieve all RT searches for a context (in order).

Parameters
$contextIdint
$pagingInfoobject DBResultRange (optional)
Returns
array RTSearch

Definition at line 459 of file RTDAO.inc.php.

References DAO\retrieveRange().

Referenced by _returnContextFromRow().

◆ getVersion()

& RTDAO::getVersion (   $versionId,
  $conferenceId 
)

Retrieve a version.

Parameters
$versionIdint
$conferenceIdint
Returns
RTVersion

Definition at line 105 of file RTDAO.inc.php.

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

◆ getVersions()

& RTDAO::getVersions (   $conferenceId,
  $pagingInfo = null 
)

Retrieve all RT versions for a conference.

Parameters
$conferenceIdint
$pagingInfoobject DBResultRange (optional)
Returns
array RTVersion

Definition at line 86 of file RTDAO.inc.php.

References DAO\retrieveRange().

Referenced by deleteVersionsByConference(), and deleteVersionsByConferenceId().

◆ insertConferenceRT()

RTDAO::insertConferenceRT ( $rt)

Insert a new RT configuration.

Parameters
$rtobject

Definition at line 72 of file RTDAO.inc.php.

References updateConferenceRT().

◆ insertContext()

RTDAO::insertContext ( $context)

Insert a context.

Parameters
$versionIdint
$contextRTContext

Definition at line 302 of file RTDAO.inc.php.

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

Referenced by insertVersion().

◆ insertSearch()

RTDAO::insertSearch ( $search)

Insert new search.

Parameters
$searchRTSearch

Definition at line 476 of file RTDAO.inc.php.

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

Referenced by insertContext().

◆ insertVersion()

RTDAO::insertVersion (   $conferenceId,
$version 
)

Insert a new version.

Parameters
$conferenceIdint
$versionRTVersion

Definition at line 127 of file RTDAO.inc.php.

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

◆ resequenceContexts()

RTDAO::resequenceContexts (   $versionId)

Sequentially renumber contexts in their sequence order.

Definition at line 376 of file RTDAO.inc.php.

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

◆ resequenceSearches()

RTDAO::resequenceSearches (   $contextId)

Sequentially renumber searches in their sequence order.

Definition at line 545 of file RTDAO.inc.php.

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

◆ updateConferenceRT()

RTDAO::updateConferenceRT ( $rt)

Definition at line 48 of file RTDAO.inc.php.

References DAORegistry\getDAO().

Referenced by insertConferenceRT().

◆ updateContext()

RTDAO::updateContext ( $context)

Update an existing context.

Parameters
$contextRTContext

Definition at line 335 of file RTDAO.inc.php.

References DAO\update().

◆ updateSearch()

RTDAO::updateSearch ( $search)

Update an existing search.

Parameters
$searchRTSearch

Definition at line 501 of file RTDAO.inc.php.

References DAO\update().

◆ updateVersion()

RTDAO::updateVersion (   $conferenceId,
$version 
)

Update an exisiting verison.

Parameters
$conferenceIdint
$versionRTVersion

Definition at line 151 of file RTDAO.inc.php.

References DAO\update().


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