Plugin Directory

Changeset 691720


Ignore:
Timestamp:
04/04/2013 03:38:01 PM (13 years ago)
Author:
ekeller
Message:

Update the PHP library

Location:
opensearchserver-search/trunk/lib
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • opensearchserver-search/trunk/lib/oss_indexdocument.class.php

    r602348 r691720  
    4040   * @return OssIndexDocument_Document
    4141   */
    42   public function newDocument($language = '') {
     42  public function newDocument($language = NULL) {
    4343    $document = new OssIndexDocument_Document($this, $language);
    4444    $this->append($document);
     
    105105   * @return OSS_DocumentNode
    106106   */
    107   public function __construct(OssIndexDocument $indexDocument, $language = '') {
     107  public function __construct(OssIndexDocument $indexDocument, $language = NULL) {
    108108    $this->indexDocument = $indexDocument;
    109109    $this->setLanguage($language);
     
    119119    static $supportedLanguages = NULL;
    120120
    121     if ($language === NULL) {
     121    if ($language === NULL || $language == '') {
    122122      $this->language = $language;
    123123      return NULL;
  • opensearchserver-search/trunk/lib/oss_search.class.php

    r610523 r691720  
    179179
    180180
    181   protected function addParams($queryChunks) {
     181  protected function addParams($queryChunks = NULL) {
    182182
    183183    $queryChunks = parent::addParams($queryChunks);
  • opensearchserver-search/trunk/lib/oss_search_mlt.class.php

    r610356 r691720  
    141141   */
    142142  public function field($fields = NULL) {
    143     if ($field != NULL) {
     143    if ($fields != NULL) {
    144144      $this->field = array_unique(array_merge($this->field, (array)$fields));
    145145    }
     
    207207   * @param array $queryChunks
    208208   */
    209   protected function addParams($queryChunks) {
     209  protected function addParams($queryChunks = NULL) {
    210210
    211211    $queryChunks = parent::addParams($queryChunks);
  • opensearchserver-search/trunk/lib/oss_search_spellcheck.class.php

    r610356 r691720  
    3535 * FIXME Complete this documentations
    3636 * FIXME Clean this class and use facilities provided by OssApi
    37  */
     37*/
    3838class OssSearchSpellCheck extends OssSearchAbstract {
    3939
     
    6464   * @return array
    6565   */
    66   protected function addParams($queryChunks) {
     66  protected function addParams($queryChunks = NULL) {
    6767    $queryChunks = parent::addParams($queryChunks);
    6868    $queryChunks[] = 'q=' . urlencode($this->query);
Note: See TracChangeset for help on using the changeset viewer.