Ignore:
Timestamp:
Jun 19, 2013, 2:43:41 PM (11 years ago)
Author:
mistic100
Message:

all collections are "active", display a menu when adding to a collection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/include/ws_functions.inc.php

    r20090 r23361  
    1212    array(
    1313      'name' => array(),
    14       'user_id' => array('default' => null),
     14      'user_id' => array('default' => null, 'info'=>'Admin parameter, default is current user'),
    1515      'active' => array('default' => 0),
    1616      'public' => array('default' => 0),
    1717      ),
    18     'Create a new User Collection. If "user_id" is empty, the collection is created for the current user.'
     18    'Create a new User Collection.'
    1919    );
    2020   
     
    2323    'ws_collections_delete',
    2424    array(
    25       'col_id' => array(),
    26       ),
    27     'Delete a User Collection. The current user must be admin or owner of the collection.'
     25      'col_id' => array('info'=>'The current user must be admin or owner of the collection'),
     26      ),
     27    'Delete a User Collection.'
    2828    );
    2929   
     
    3333    array(
    3434      'col_id' => array('default' => null),
    35       'user_id' => array('default' => null),
     35      'user_id' => array('default' => null, 'info'=>'Admin parameter, default is current user'),
    3636      'name' => array('default' => null),
    3737      'public' => array('default' => null),
     
    4545    'ws_collections_addImages',
    4646    array(
    47       'col_id' => array(),
     47      'col_id' => array('info'=>'The current user must be admin or owner of the collection'),
    4848      'image_ids' => array('flags'=>WS_PARAM_FORCE_ARRAY),
    4949      ),
    50     'Add images to a collection. The current user must be admin or owner of the collection.'
     50    'Add images to a collection.'
    5151    );
    5252   
     
    5555    'ws_collections_removeImages',
    5656    array(
    57       'col_id' => array(),
     57      'col_id' => array('info'=>'The current user must be admin or owner of the collection'),
    5858      'image_ids' => array('flags'=>WS_PARAM_FORCE_ARRAY),
    5959      ),
    60     'Remove images from a collection. The current user must be admin or owner of the collection.'
     60    'Remove images from a collection.'
    6161    );
    6262   
     
    7878    array(
    7979      'col_id' => array(),
    80       'content' => array('default'=>array('id','name','url','path'), 'flags'=>WS_PARAM_FORCE_ARRAY),
    81       ),
    82     'Returns a serialized version of the collection in CSV.<br>Available options for "content" are : id, file, name, url, path.<br>The return type is plain/text whatever you select as response format.'
     80      'content' => array(
     81        'default'=>array('id','name','url','path'),
     82        'flags'=>WS_PARAM_FORCE_ARRAY,
     83        'info'=>'Available options are: id, file, name, url, path'
     84        ),
     85      ),
     86    'Returns a serialized version of the collection in CSV.<br>The return type is plain/text whatever you select as response format.'
    8387    );
    8488}
Note: See TracChangeset for help on using the changeset viewer.