FinderIndexer::addTokensToDB
Method to add a set of tokens to the database.
Signature
protected function addTokensToDB(mixed
$tokens,
[string
$context = ''] )
Parameters
-
$tokens
- An array or single FinderIndexerToken object.
-
$context
- The context of the tokens. See context constants. [optional]
Returns
- integer
- The number of tokens inserted into the database.
Errors/Exceptions
-
Exception
- on database error.