Public Member Functions

FeatureDAO Class Reference
[Press]

Operations for setting Featured status on various items. More...

List of all members.

Public Member Functions

 deleteByAssoc ($assocType, $assocId)
 deleteByMonographId ($monographId)
 deleteFeature ($monographId, $assocType, $assocId)
 FeatureDAO ()
 getMonographIdsByAssoc ($assocType, $assocId)
 getSequencesByAssoc ($assocType, $assocId)
 insertFeature ($monographId, $assocType, $assocId, $seq)
 resequenceByAssoc ($assocType, $assocId)

Detailed Description

Operations for setting Featured status on various items.

See also:
Feature

Definition at line 16 of file FeatureDAO.inc.php.


Member Function Documentation

FeatureDAO.deleteByAssoc ( assocType,
assocId 
)

Delete a feature by association.

Parameters:
$assocType int ASSOC_TYPE_...
$assocId int

Definition at line 98 of file FeatureDAO.inc.php.

FeatureDAO.deleteByMonographId ( monographId  ) 

Delete a feature by ID.

Parameters:
$featureId int
$pressId int optional

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

FeatureDAO.deleteFeature ( monographId,
assocType,
assocId 
)

Delete a feature.

Parameters:
$monographId int
$assocType int ASSOC_TYPE_...
$assocId int

Definition at line 111 of file FeatureDAO.inc.php.

FeatureDAO.FeatureDAO (  ) 

Constructor

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

FeatureDAO.getMonographIdsByAssoc ( assocType,
assocId 
)

Get monograph IDs by association.

Parameters:
$assocType int ASSOC_TYPE_...
$assocId int
Returns:
array Associative array seq => monograph ID

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

Referenced by getSequencesByAssoc().

FeatureDAO.getSequencesByAssoc ( assocType,
assocId 
)

Get feature sequences by association.

Parameters:
$assocType int ASSOC_TYPE_...
$assocId int
Returns:
array Associative array monograph ID => seq

Definition at line 55 of file FeatureDAO.inc.php.

References getMonographIdsByAssoc().

FeatureDAO.insertFeature ( monographId,
assocType,
assocId,
seq 
)

Insert a new feature.

Parameters:
$monographId int
$assocType int ASSOC_TYPE_...
$assocId int
$seq int

Definition at line 66 of file FeatureDAO.inc.php.

FeatureDAO.resequenceByAssoc ( assocType,
assocId 
)

Resequence features by association.

Parameters:
$assocType int ASSOC_TYPE_...
$assocId int per $assocType
$seqMonographId if specified, sequence of monograph to return
Returns:
array Associative array of id => seq for resequenced set

Definition at line 132 of file FeatureDAO.inc.php.


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