You are here

static function ApacheSolrUpdate::get_last in Apache Solr Search 5

3 calls to ApacheSolrUpdate::get_last()
ApacheSolrUpdate::getNodesToIndex in ./apachesolr.module
Function to generically handle the fetching of nodes that need indexing on a cron run. It takes a namespace which needs to be unique to the calling module and manages all of the global variables and the shutdown function so that every…
apachesolr_multisitesearch_search in contrib/apachesolr_multisitesearch/apachesolr_multisitesearch.module
Implementation of hook_search().
apachesolr_search_search in ./apachesolr_search.module
Implementation of hook_search().

File

./apachesolr.module, line 269
Integration with the Apache Solr search application.

Class

ApacheSolrUpdate
The point of this class is to manage the update index needs of multiple search modules. Each one needs to track its own list of nodes that need updating.

Code

static function get_last($namespace) {
  $var = variable_get($namespace . '_last_id', 0);
  return $var;
}