|
| | __construct () |
| | SPTRecommender object constructor. More...
|
| |
| | GetFieldValue ($ItemId, $FieldName) |
| | Get value for a given field. More...
|
| |
| | QueueUpdateForItem ($ItemOrItemId, $TaskPriority=NULL) |
| | Queue a background update for a specified item. More...
|
| |
| | __construct (&$DB, $ItemTableName, $RatingTableName, $ItemIdFieldName, $UserIdFieldName, $RatingFieldName, $ContentFields) |
| |
| | DebugLevel ($Setting) |
| |
| | Recommend ($UserId, $StartingResult=0, $NumberOfResults=10) |
| |
| | AddResultFilterFunction ($FunctionName) |
| |
| | NumberOfResults () |
| |
| | SearchTime () |
| |
| | GetSourceList ($UserId, $RecommendedItemId) |
| |
| | FindSimilarItems ($ItemId, $FieldList=NULL) |
| |
| | RecommendFieldValues ($ItemId, $FieldList=NULL) |
| |
| | UpdateForItems ($StartingItemId, $NumberOfItems) |
| |
| | UpdateForItem ($ItemId, $FullPass=FALSE) |
| |
| | DropItem ($ItemId) |
| |
| | PruneCorrelations () |
| |
| | GetItemIds () |
| | Retrieve all item IDs. More...
|
| |
Definition at line 10 of file SPTRecommender.php.
| SPTRecommender::__construct |
( |
| ) |
|
SPTRecommender object constructor.
Definition at line 16 of file SPTRecommender.php.
References Recommender\CONTENTFIELDTYPE_DATE, Recommender\CONTENTFIELDTYPE_NUMERIC, Recommender\CONTENTFIELDTYPE_TEXT, MetadataSchema\MDFTYPE_CONTROLLEDNAME, MetadataSchema\MDFTYPE_DATE, MetadataSchema\MDFTYPE_FILE, MetadataSchema\MDFTYPE_FLAG, MetadataSchema\MDFTYPE_IMAGE, MetadataSchema\MDFTYPE_NUMBER, MetadataSchema\MDFTYPE_OPTION, MetadataSchema\MDFTYPE_PARAGRAPH, MetadataSchema\MDFTYPE_TEXT, MetadataSchema\MDFTYPE_TIMESTAMP, MetadataSchema\MDFTYPE_TREE, MetadataSchema\MDFTYPE_URL, and MetadataSchema\MDFTYPE_USER.
| SPTRecommender::GetFieldValue |
( |
|
$ItemId, |
|
|
|
$FieldName |
|
) |
| |
Get value for a given field.
- Parameters
-
| int | $ItemId | Item to retreive value from |
| string | $FieldName | Field name to retrieve |
- Returns
- mixed Value for requested field
Definition at line 102 of file SPTRecommender.php.
| SPTRecommender::QueueUpdateForItem |
( |
|
$ItemOrItemId, |
|
|
|
$TaskPriority = NULL |
|
) |
| |
Queue a background update for a specified item.
- Parameters
-
| mixed | $ItemOrItemId | Item or an int item id to update |
| mixed | $TaskPriority | Priority to use for this task, if the default is not suitable |
Definition at line 133 of file SPTRecommender.php.
| static SPTRecommender::RunUpdateForItem |
( |
|
$SourceItemId, |
|
|
|
$StartingIndex |
|
) |
| |
|
static |
Perform recommender db updates for a specified item (usually in the background)
- Parameters
-
| int | $SourceItemId | ItemId for the source item in this update |
| int | $StartingIndex | Starting index of the destination items |
Definition at line 164 of file SPTRecommender.php.
References Database\Caching().
| static SPTRecommender::SetUpdatePriority |
( |
|
$NewPriority | ) |
|
|
static |
Set the default priority for background tasks.
- Parameters
-
| mixed | $NewPriority | New task priority (one of ApplicationFramework::PRIORITY_*) |
Definition at line 249 of file SPTRecommender.php.
The documentation for this class was generated from the following file: