Open Journal Systems  3.3.0
PluginGalleryDAO Class Reference
Inheritance diagram for PluginGalleryDAO:
DAO

Public Member Functions

 _handleCompatibility ($element, $plugin, $application)
 
 _handleMaintainer ($element, $plugin)
 
 _handleRelease ($element, $plugin, $application)
 
 getNewestCompatible ($application, $category=null, $search=null)
 
 newDataObject ()
 
- Public Member Functions inherited from DAO
 __construct ($dataSource=null, $callHooks=true)
 
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAdditionalFieldNames ()
 
 getAffectedRows ()
 
 getDataObjectSettings ($tableName, $idFieldName, $idFieldValue, $dataObject)
 
 getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getLocaleFieldNames ()
 
 getType ($value)
 
 handleError ($dataSource, $sql)
 
 nullOrInt ($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)
 

Protected Member Functions

 _compatibleFromElement ($element, $application)
 
- Protected Member Functions inherited from DAO
 _getInsertId ($table='', $id='')
 

Additional Inherited Members

- Static Public Member Functions inherited from DAO
static getDataChangedEvent ($elementId=null, $parentElementId=null, $content='')
 
- Data Fields inherited from DAO
 $_dataSource
 

Detailed Description

Operations for retrieving content from the PKP plugin gallery.

See also
DAO

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

Member Function Documentation

◆ _compatibleFromElement()

PluginGalleryDAO::_compatibleFromElement (   $element,
  $application 
)
protected

Build a GalleryPlugin from a DOM element, using the newest compatible release with the supplied Application.

Parameters
$elementDOMElement
$applicationApplication
Returns
GalleryPlugin or null, if no compatible plugin was available

Definition at line 76 of file PluginGalleryDAO.inc.php.

References $application, _handleMaintainer(), _handleRelease(), and newDataObject().

Referenced by getNewestCompatible().

◆ _handleCompatibility()

PluginGalleryDAO::_handleCompatibility (   $element,
  $plugin,
  $application 
)

Handle a compatibility element, fishing out the most recent statement of compatibility.

Parameters
$maintainerElementDOMElement
$pluginGalleryPlugin
$applicationPKPApplication
Returns
boolean True iff a compatibility statement matched this app

Definition at line 206 of file PluginGalleryDAO.inc.php.

References $application.

Referenced by _handleRelease().

◆ _handleMaintainer()

PluginGalleryDAO::_handleMaintainer (   $element,
  $plugin 
)

Handle a maintainer element

Parameters
$maintainerElementDOMElement
$pluginGalleryPlugin

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

Referenced by _compatibleFromElement().

◆ _handleRelease()

PluginGalleryDAO::_handleRelease (   $element,
  $plugin,
  $application 
)

Handle a release element

Parameters
$maintainerElementDOMElement
$pluginGalleryPlugin
$applicationPKPApplication

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

References $application, and _handleCompatibility().

Referenced by _compatibleFromElement().

◆ getNewestCompatible()

PluginGalleryDAO::getNewestCompatible (   $application,
  $category = null,
  $search = null 
)

Get a set of GalleryPlugin objects describing the available compatible plugins in their newest versions.

Parameters
$applicationPKPApplication
$categorystring Optional category name to use as filter
$searchstring Optional text to use as filter
Returns
array GalleryPlugin objects

Definition at line 31 of file PluginGalleryDAO.inc.php.

References $application, _compatibleFromElement(), PKPString\strpos(), and PKPString\strtolower().

◆ newDataObject()

PluginGalleryDAO::newDataObject ( )

Construct a new data object.

Returns
GalleryPlugin

Definition at line 65 of file PluginGalleryDAO.inc.php.

Referenced by _compatibleFromElement().


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