CWIS Developer Documentation
Public Member Functions | Static Public Member Functions | List of all members
SPTRecommender Class Reference
Inheritance diagram for SPTRecommender:
Inheritance graph
[legend]
Collaboration diagram for SPTRecommender:
Collaboration graph
[legend]

Public Member Functions

 __construct ()
 
 GetFieldValue ($ItemId, $FieldName)
 
 QueueUpdateForItem ($ItemId, $TaskPriority=ApplicationFramework::PRIORITY_BACKGROUND)
 
- Public Member Functions inherited from Recommender
 __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...
 

Static Public Member Functions

static RunUpdateForItem ($SourceItemId, $StartingIndex)
 
- Static Public Member Functions inherited from Recommender
static ClearCaches ()
 Clear internal caches of item and correlation data. More...
 

Additional Inherited Members

- Public Attributes inherited from Recommender
const CONTENTFIELDTYPE_TEXT = 1
 
const CONTENTFIELDTYPE_NUMERIC = 2
 
const CONTENTFIELDTYPE_CONTROLLEDNAME = 3
 
const CONTENTFIELDTYPE_DATE = 4
 
const CONTENTFIELDTYPE_DATERAMGE = 5
 
- Protected Member Functions inherited from Recommender
 LoadItemIds ()
 
 GetFieldData ($ItemId, $FieldName)
 
 CalculateContentCorrelation ($ItemIdA, $ItemIdB, $FieldList=NULL)
 
 UpdateContentCorrelation ($ItemIdA, $ItemIdB)
 
 NormalizeAndParseText ($Text)
 
 CalcTextCorrelation ($WordsA, $WordsB)
 
 ContentCorrelation ($ItemIdA, $ItemIdB, $NewCorrelation=-1)
 
 FilterOnSuppliedFunctions ($Results)
 

Detailed Description

Definition at line 10 of file SPTRecommender.php.

Constructor & Destructor Documentation

SPTRecommender::__construct ( )

Member Function Documentation

SPTRecommender::GetFieldValue (   $ItemId,
  $FieldName 
)

Definition at line 93 of file SPTRecommender.php.

SPTRecommender::QueueUpdateForItem (   $ItemId,
  $TaskPriority = ApplicationFramework::PRIORITY_BACKGROUND 
)

Definition at line 118 of file SPTRecommender.php.

static SPTRecommender::RunUpdateForItem (   $SourceItemId,
  $StartingIndex 
)
static

Definition at line 129 of file SPTRecommender.php.

References Database\Caching().


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