Changeset 8249 for trunk/ws.php


Ignore:
Timestamp:
Dec 23, 2010, 11:22:51 AM (13 years ago)
Author:
plg
Message:

feature 2083 added: implement method pwg.images.addSimple in core

makes admin/include/function_upload.inc.php not dependant from include/ws_functions.inc.php (moves functions file_path_for_type and ready_for_upload_message)

cleaner method to initialize the upload settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ws.php

    r6363 r8249  
    222222
    223223  $service->addMethod(
     224    'pwg.images.addSimple',
     225    'ws_images_addSimple',
     226    array(
     227      'category' => array('default' => null),
     228      'name' => array('default' => null),
     229      'author' => array('default' => null),
     230      'comment' => array('default' => null),
     231      'level' => array(
     232        'default' => 0,
     233        'maxValue' => $conf['available_permission_levels']
     234        ),
     235      'tags' => array('default' => null),
     236      ),
     237    'POST method only.<br>Use the <b>image</b> field for uploading file.<br>Set the form encoding to "form-data"<br><b>category</b> is the numeric identifier of the destination category.'
     238    );
     239 
     240  $service->addMethod(
    224241    'pwg.categories.getAdminList',
    225242    'ws_categories_getAdminList',
Note: See TracChangeset for help on using the changeset viewer.