methods first letter should be lower case
This commit is contained in:
@@ -280,7 +280,7 @@ class BookSearch
|
|||||||
* @return array Books information
|
* @return array Books information
|
||||||
* @throws WebException
|
* @throws WebException
|
||||||
*/
|
*/
|
||||||
public static function GetBooks(array $codes, $field = 'code') {
|
public static function getBooks(array $codes, $field = 'code') {
|
||||||
// it is faster to do multiple small request to Solr rather than one big so separate
|
// it is faster to do multiple small request to Solr rather than one big so separate
|
||||||
// in chunks if we are above the limit. 15 was found by testing and seems to be a sweet spot
|
// in chunks if we are above the limit. 15 was found by testing and seems to be a sweet spot
|
||||||
$limit = 15;
|
$limit = 15;
|
||||||
@@ -290,7 +290,7 @@ class BookSearch
|
|||||||
$books = array();
|
$books = array();
|
||||||
foreach($parts as $p) {
|
foreach($parts as $p) {
|
||||||
// if we use array_merge here the numerical keys (book code) will be lost
|
// if we use array_merge here the numerical keys (book code) will be lost
|
||||||
$books += self::GetBooks($p, $field);
|
$books += self::getBooks($p, $field);
|
||||||
}
|
}
|
||||||
return $books;
|
return $books;
|
||||||
}
|
}
|
||||||
@@ -302,7 +302,7 @@ class BookSearch
|
|||||||
return $results['books'];
|
return $results['books'];
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function GetTerms($field) {
|
public static function getTerms($field) {
|
||||||
$s = new BookSearch();
|
$s = new BookSearch();
|
||||||
$s->addFilterQuery(1, 'visible');
|
$s->addFilterQuery(1, 'visible');
|
||||||
$s->addFacetField($field);
|
$s->addFacetField($field);
|
||||||
@@ -313,7 +313,7 @@ class BookSearch
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static function GetTermsRange($field) {
|
public static function getTermsRange($field) {
|
||||||
$s = new BookSearch();
|
$s = new BookSearch();
|
||||||
$s->addFilterQuery(1, 'visible');
|
$s->addFilterQuery(1, 'visible');
|
||||||
$s->setFacetRangeField($field);
|
$s->setFacetRangeField($field);
|
||||||
|
|||||||
Reference in New Issue
Block a user