Public Member Functions
Detailed Description
Member Function Documentation
Ascribes the given comment to the given object and persists the relationship to the data store.
- Parameters:
-
- Returns:
- void
Appends the given rating to the given object and persists the relationship to the data store.
- Parameters:
-
Ascribes the given tag to the given object and persists the relationship to the data store.
- Parameters:
-
- Returns:
- void
| DMDataStore::createTables |
( |
| ) |
|
| DMDataStore::deleteAllTagsWithValue |
( |
$ |
value | ) |
|
Deletes all tags with the given value.
- Parameters:
-
- Returns:
- int The number of tags deleted
- Deprecated:
| DMDataStore::deleteComment |
( |
DMComment $ |
comment | ) |
|
| DMDataStore::deleteTag |
( |
DMTag $ |
tag | ) |
|
Deletes the given tag from the data store.
- Parameters:
-
| DMDataStore::getAllRatingsForObject |
( |
DMObject $ |
o | ) |
|
- Parameters:
-
- Returns:
- array Array of all ratings for the given object, as DMRating objects
- Deprecated:
| DMDataStore::getMeanNumCommentsPerObjectInCollection |
( |
DMCollection $ |
col | ) |
|
| DMDataStore::getMeanNumRatingsPerObjectInCollection |
( |
DMCollection $ |
col | ) |
|
| DMDataStore::getMeanNumTagsPerObjectInCollection |
( |
DMCollection $ |
col | ) |
|
| DMDataStore::getMedianNumCommentsPerObjectInCollection |
( |
DMCollection $ |
col | ) |
|
| DMDataStore::getMedianNumRatingsPerObjectInCollection |
( |
DMCollection $ |
col | ) |
|
| DMDataStore::getMedianNumTagsPerObjectInCollection |
( |
DMCollection $ |
col | ) |
|
| DMDataStore::getNumObjectsWithApprovedComments |
( |
| ) |
|
- Returns:
- int The number of objects with approved comments.
- Deprecated:
| DMDataStore::getNumObjectsWithApprovedTags |
( |
| ) |
|
- Returns:
- int The number of objects with approved tags.
- Deprecated:
| DMDataStore::getNumObjectsWithRatings |
( |
| ) |
|
- Returns:
- int The number of objects that have been rated.
- Deprecated:
| DMDataStore::getNumRatings |
( |
| ) |
|
- Returns:
- int The number of ratings in the data store.
- Deprecated:
| DMDataStore::getNumRatingsForObject |
( |
DMObject $ |
o | ) |
|
- Parameters:
-
- Returns:
- int The number of ratings for the given object.
- Deprecated:
- Parameters:
-
- Returns:
- int The number of ratings in the given collection.
- Deprecated:
| DMDataStore::getObjectsWithHighestRatings |
( |
$ |
limit | ) |
|
- Parameters:
-
- Returns:
- array Array of DMObjects
- Deprecated:
| DMDataStore::getObjectsWithLowestRatings |
( |
$ |
limit | ) |
|
- Parameters:
-
- Returns:
- array Array of DMObjects
- Deprecated:
| DMDataStore::getObjectsWithMostComments |
( |
$ |
limit | ) |
|
- Parameters:
-
- Returns:
- array Array of DMObjects in descending order by comment count, up to $limit
- Deprecated:
| DMDataStore::getObjectsWithMostRatings |
( |
$ |
limit | ) |
|
- Parameters:
-
- Returns:
- array Array of DMObjects
- Deprecated:
| DMDataStore::getObjectsWithMostTags |
( |
$ |
limit | ) |
|
- Parameters:
-
- Returns:
- array Array of DMObjects with the most tags in descending order up to $limit.
- Deprecated:
| DMDataStore::getRatingForObject |
( |
DMObject $ |
o | ) |
|
| DMDataStore::getTagsForQueryAsCounts |
( |
DMTagQuery $ |
query, |
|
|
$ |
count |
|
) |
| |
- Parameters:
-
| DMTagQuery | query |
| bool | count Whether to return the result count, or the results |
- Returns:
- Associative array of tag value => count pairs
- Deprecated:
| DMDataStore::getTagsForQueryAsObjects |
( |
DMTagQuery $ |
query, |
|
|
$ |
count |
|
) |
| |
- Parameters:
-
| DMTagQuery | query |
| bool | count Whether to return the result count, or the results |
- Returns:
- Array of DMTag objects
- Deprecated:
| DMDataStore::loadComment |
( |
$ |
id | ) |
|
| DMDataStore::loadTag |
( |
$ |
id | ) |
|
- Parameters:
-
- Returns:
- DMTag
- Exceptions:
-
| DMDataStore::read |
( |
$ |
sql, |
|
|
array $ |
params |
|
) |
| |
- Parameters:
-
| string | sql |
| array | params Array of bound parameters, in :key => value format |
- Exceptions:
-
- Returns:
- array
Referenced by UNLVHighlightSQLiteDataStore::getHighlightedObject(), UNLVHighlightMySQLDataStore::getHighlightedObject(), UNLVHighlightSQLiteDataStore::getHighlightedObjects(), UNLVHighlightMySQLDataStore::getHighlightedObjects(), UNLVSpatialSQLiteDataStore::getNumObjectsInCollection(), UNLVSpatialMySQLDataStore::getNumObjectsInCollection(), UNLVSpatialSQLiteDataStore::getNumObjectsMatchingQuery(), UNLVSpatialMySQLDataStore::getNumObjectsMatchingQuery(), UNLVSpatialSQLiteDataStore::getObject(), UNLVSpatialMySQLDataStore::getObject(), UNLVSpatialSQLiteDataStore::getObjectsMatchingQuery(), UNLVSpatialMySQLDataStore::getObjectsMatchingQuery(), UNLVRandomSQLiteDataStore::getRandomObject(), UNLVRandomMySQLDataStore::getRandomObject(), UNLVRandomSQLiteDataStore::getRandomObjects(), UNLVRandomMySQLDataStore::getRandomObjects(), UNLVSpatialSQLiteDataStore::updateObject(), and UNLVSpatialMySQLDataStore::updateObject().
Persists the supplied comment to the data store.
- Parameters:
-
- Returns:
- void
| DMDataStore::saveTag |
( |
DMTag $ |
tag | ) |
|
Saves the given tag to the data store.
- Parameters:
-
- Returns:
- void
| DMDataStore::write |
( |
$ |
sql, |
|
|
array $ |
params |
|
) |
| |
- Parameters:
-
| string | sql |
| array | params Array of bound parameters, in :key => value format |
- Exceptions:
-
- Returns:
- int Number of affected rows
Referenced by UNLVHighlightSQLiteDataStore::addHighlightedObject(), UNLVHighlightMySQLDataStore::addHighlightedObject(), UNLVRandomSQLiteDataStore::addRandomObject(), UNLVRandomMySQLDataStore::addRandomObject(), UNLVSpatialSQLiteDataStore::deleteAllObjectsInCollection(), UNLVSpatialMySQLDataStore::deleteAllObjectsInCollection(), UNLVHighlightSQLiteDataStore::deleteHighlightedObjectsOnDate(), UNLVHighlightMySQLDataStore::deleteHighlightedObjectsOnDate(), UNLVSpatialSQLiteDataStore::deleteObject(), UNLVSpatialMySQLDataStore::deleteObject(), UNLVSpatialSQLiteDataStore::updateObject(), and UNLVSpatialMySQLDataStore::updateObject().
The documentation for this interface was generated from the following file: