Changeset 1837 for trunk/ws.php


Ignore:
Timestamp:
Feb 19, 2007, 5:25:47 PM (17 years ago)
Author:
rvelices
Message:

web service: added method to query search elements
picture: small correction on my last commit
monthly calendar nice view: always use getimagesize instead of guessing the size
query search: improved results (filename is searched separately) and sometimes less sql queries than before

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ws.php

    r1781 r1837  
    8181      array('image_id'),
    8282      'retrieves information about the given photo' );
     83
     84  $service->addMethod('pwg.images.search', 'ws_images_search',
     85      array(
     86        'query'=>array(),
     87        'per_page' => array('default'=>100, 'maxValue'=>$conf['ws_max_images_per_page']),
     88        'page' => array('default'=>0),
     89        'order' => array('default'=>null),
     90        'f_min_rate' => array( 'default'=> null ),
     91        'f_max_rate' => array( 'default'=> null ),
     92        'f_min_hit' => array( 'default'=> null ),
     93        'f_max_hit' => array( 'default'=> null ),
     94        'f_min_date_available' => array( 'default'=> null ),
     95        'f_max_date_available' => array( 'default'=> null ),
     96        'f_min_date_created' => array( 'default'=> null ),
     97        'f_max_date_created' => array( 'default'=> null ),
     98        'f_min_ratio' => array( 'default'=> null ),
     99        'f_max_ratio' => array( 'default'=> null ),
     100        'f_with_thumbnail' => array( 'default'=> false ),
     101      ),
     102      'Returns elements for the corresponding query search.'
     103    );
    83104
    84105  $service->addMethod('pwg.session.getStatus', 'ws_session_getStatus', null, '' );
Note: See TracChangeset for help on using the changeset viewer.