Changeset 2435 for trunk/ws.php


Ignore:
Timestamp:
Jul 15, 2008, 3:29:23 AM (16 years ago)
Author:
rvelices
Message:
  • image rating on picture page done through ajax (tested safari/ie 6&7/ff)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ws.php

    r2429 r2435  
    4444      'retrieves the PWG version');
    4545
    46   $service->addMethod('pwg.caddie.add', 'ws_caddie_add', 
     46  $service->addMethod('pwg.caddie.add', 'ws_caddie_add',
    4747      array(
    4848        'image_id'=> array( 'flags'=>WS_PARAM_FORCE_ARRAY ),
     
    9595        'image_id' => array(),
    9696        'comments_page' => array('default'=>0 ),
    97         'comments_per_page' => array( 
    98               'default' => $conf['nb_comment_page'], 
     97        'comments_per_page' => array(
     98              'default' => $conf['nb_comment_page'],
    9999              'maxValue' => 2*$conf['nb_comment_page'],
    100100            ),
    101101      ),
    102102      'retrieves information about the given photo' );
     103
     104  $service->addMethod('pwg.images.rate', 'ws_images_rate',
     105      array(
     106        'image_id' => array(),
     107        'rate' =>     array(),
     108      ),
     109      'rate the image' );
    103110
    104111  $service->addMethod('pwg.images.search', 'ws_images_search',
Note: See TracChangeset for help on using the changeset viewer.