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

Public Member Functions

_returnSiteFromRow (&$row, $callHook=true)
 
getSite ()
 
 insertSite (&$site)
 
 newDataObject ()
 
 SiteDAO ()
 
 updateObject (&$site)
 
- 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 the Site object.

See Also
Site

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

Member Function Documentation

& SiteDAO::_returnSiteFromRow ( $row,
  $callHook = true 
)

Internal function to return a Site object from a row.

Parameters
$rowarray
$callHookboolean
Returns
Site

Definition at line 62 of file SiteDAO.inc.php.

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

Referenced by getSite().

& SiteDAO::getSite ( )

Retrieve site information.

Returns
Site

Definition at line 32 of file SiteDAO.inc.php.

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

SiteDAO::insertSite ( $site)

Insert site information.

Parameters
$siteSite

Definition at line 80 of file SiteDAO.inc.php.

References DAO\update().

SiteDAO::newDataObject ( )

Instantiate and return a new DataObject.

Returns
Site

Definition at line 52 of file SiteDAO.inc.php.

Referenced by _returnSiteFromRow().

SiteDAO::SiteDAO ( )

Constructor

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

SiteDAO::updateObject ( $site)

Update existing site information.

Parameters
$siteSite

Definition at line 102 of file SiteDAO.inc.php.

References DAO\update().


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