Changeset 29483


Ignore:
Timestamp:
09/11/14 12:41:54 (5 years ago)
Author:
plg
Message:

feature 3139: search photo by id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_search.inc.php

    r29431 r29483  
    964964        $clauses[] = $token->scope->get_sql('date_available', $token); 
    965965        break; 
     966      case 'id': 
     967        $clauses[] = $token->scope->get_sql($scope_id, $token); 
     968        break; 
    966969      default: 
    967970        // allow plugins to have their own scope with columns added in db by themselves 
     
    11811184  $scopes[] = new QNumericRangeScope('hits', array('hit', 'visit', 'visits')); 
    11821185  $scopes[] = new QNumericRangeScope('score', array('rating'), true); 
     1186  $scopes[] = new QNumericRangeScope('id', array()); 
    11831187 
    11841188  $createdDateAliases = array('taken', 'shot'); 
Note: See TracChangeset for help on using the changeset viewer.