Changeset 2919 for trunk/ws.php


Ignore:
Timestamp:
Dec 3, 2008, 11:55:17 PM (15 years ago)
Author:
plg
Message:

merge r2722 from branch 2.0 to trunk

feature 892 added: pwg.images.setInfo added so that once we have discovered
the photo was already in the database (thanks to pwg.images.exist), we can
only set the photo metadata.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ws.php

    r2683 r2919  
    239239    'check existence of a photo list'
    240240    );
     241
     242  $service->addMethod(
     243    'pwg.images.setInfo',
     244    'ws_images_setInfo',
     245    array(
     246      'image_id' => array(),
     247     
     248      'name' => array('default' => null),
     249      'author' => array('default' => null),
     250      'date_creation' => array('default' => null),
     251      'comment' => array('default' => null),
     252      'categories' => array('default' => null),
     253      'tag_ids' => array('default' => null),
     254      'level' => array(
     255        'default' => 0,
     256        'maxValue' => $conf['available_permission_levels']
     257        ),
     258      ),
     259    'POST method only. Admin only
     260<br/><b>categories</b> is a string list "category_id[,rank];category_id[,rank]" The rank is optional and is equivalent to "auto" if not given.'
     261    );
    241262}
    242263
Note: See TracChangeset for help on using the changeset viewer.