Changeset 4460 for trunk/ws.php


Ignore:
Timestamp:
Dec 9, 2009, 11:19:06 PM (14 years ago)
Author:
plg
Message:

merge r4459 from branch 2.0 to trunk

feature 1316 added: we now have the ability to only fill the single value
properties that are currently empty in the database instead of automatically
replacing.

feature 1312: as a matter of consistency, I have changed the replace_mode
(that was only for multiple values properties) into multiple_value_mode +
single_value_mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ws.php

    r4445 r4460  
    290290        'maxValue' => $conf['available_permission_levels']
    291291        ),
    292       'replace_mode' => array('default' => false),
     292      'single_value_mode' => array('default' => 'fill_if_empty'),
     293      'multiple_value_mode' => array('default' => 'append'),
    293294      ),
    294295    'POST method only. Admin only
    295 <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.'
     296<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.
     297<br><b>single_value_mode</b> can be "fill_if_empty" (only use the input value if the corresponding values is currently empty) or "replace" (overwrite any existing value) and applies to single values properties like name/author/date_creation/comment
     298<br><b>multiple_value_mode</b> can be "append" (no change on existing values, add the new values) or "replace" and applies to multiple values properties like tag_ids/categories'
    296299    );
    297300 
Note: See TracChangeset for help on using the changeset viewer.