Changeset 25115 for trunk/ws.php
- Timestamp:
- Oct 24, 2013, 12:01:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ws.php
r25077 r25115 136 136 'ws_getInfos', 137 137 null, 138 '<b>Admin only.</b> Returns general informations.' 138 '<b>Admin only.</b> Returns general informations.', 139 null, 140 array('admin_only'=>true) 139 141 ); 140 142 … … 146 148 'type'=>WS_TYPE_ID), 147 149 ), 148 '<b>Admin only.</b> Adds elements to the caddie. Returns the number of elements added.' 150 '<b>Admin only.</b> Adds elements to the caddie. Returns the number of elements added.', 151 null, 152 array('admin_only'=>true) 149 153 ); 150 154 … … 205 209 'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE), 206 210 ), $f_params), 207 '<b>Admin only.</b> Returns a list of derivatives to build.' 211 '<b>Admin only.</b> Returns a list of derivatives to build.', 212 null, 213 array('admin_only'=>true) 208 214 ); 209 215 … … 217 223 'key' => array(), 218 224 ), 219 '<b>POST only.</b> Adds a comment to an image.' 225 '<b>POST only.</b> Adds a comment to an image.', 226 null, 227 array('post_only'=>true) 220 228 ); 221 229 … … 269 277 'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE), 270 278 ), 271 '<b>Admin & POST only.</b> Sets the privacy levels for the images.' 279 '<b>Admin & POST only.</b> Sets the privacy levels for the images.', 280 null, 281 array('admin_only'=>true, 'post_only'=>true) 272 282 ); 273 283 … … 280 290 'rank' => array('type'=>WS_TYPE_INT|WS_TYPE_POSITIVE|WS_TYPE_NOTNULL) 281 291 ), 282 '<b>Admin & POST only.</b> Sets the rank of a photo for a given album.' 292 '<b>Admin & POST only.</b> Sets the rank of a photo for a given album.', 293 null, 294 array('admin_only'=>true, 'post_only'=>true) 283 295 ); 284 296 … … 290 302 'anonymous_id' => array('default'=>null), 291 303 ), 292 '<b>Admin & POST only.</b> Deletes all rates for a user.' 304 '<b>Admin & POST only.</b> Deletes all rates for a user.', 305 null, 306 array('admin_only'=>true, 'post_only'=>true) 293 307 ); 294 308 … … 304 318 'ws_session_login', 305 319 array('username', 'password'), 306 '<b>POST only.</b> Tries to login the user.' 320 '<b>POST only.</b> Tries to login the user.', 321 null, 322 array('post_only'=>true) 307 323 ); 308 324 … … 358 374 'position' => array() 359 375 ), 360 '<b>Admin & POST only.</b> Add a chunk of a file.' 376 '<b>Admin & POST only.</b> Add a chunk of a file.', 377 null, 378 array('admin_only'=>true, 'post_only'=>true) 361 379 ); 362 380 … … 371 389 ), 372 390 '<b>Admin only.</b> Add or update a file for an existing photo. 373 <br>pwg.images.addChunk must have been called before (maybe several times).' 391 <br>pwg.images.addChunk must have been called before (maybe several times).', 392 null, 393 array('admin_only'=>true) 374 394 ); 375 395 … … 402 422 '<b>Admin only.</b> Add an image. 403 423 <br>pwg.images.addChunk must have been called before (maybe several times). 404 <br>Don\'t use "thumbnail_sum" and "high_sum", these parameters are here for backward compatibility.' 424 <br>Don\'t use "thumbnail_sum" and "high_sum", these parameters are here for backward compatibility.', 425 null, 426 array('admin_only'=>true) 405 427 ); 406 428 … … 426 448 <br>Use the <b>$_FILES[image]</b> field for uploading file. 427 449 <br>Set the form encoding to "form-data". 428 <br>You can update an existing photo if you define an existing image_id.' 450 <br>You can update an existing photo if you define an existing image_id.', 451 null, 452 array('admin_only'=>true, 'post_only'=>true) 429 453 ); 430 454 … … 436 460 'pwg_token' => array(), 437 461 ), 438 '<b>Admin & POST only.</b> Deletes image(s).' 462 '<b>Admin & POST only.</b> Deletes image(s).', 463 null, 464 array('admin_only'=>true, 'post_only'=>true) 439 465 ); 440 466 … … 443 469 'ws_categories_getAdminList', 444 470 null, 445 '<b>Admin only.</b>' 471 '<b>Admin only.</b>', 472 null, 473 array('admin_only'=>true) 446 474 ); 447 475 … … 474 502 '<b>Admin & POST only.</b> Deletes album(s). 475 503 <br><b>photo_deletion_mode</b> can be "no_delete" (may create orphan photos), "delete_orphans" 476 (default mode, only deletes photos linked to no other album) or "force_delete" (delete all photos, even those linked to other albums)' 504 (default mode, only deletes photos linked to no other album) or "force_delete" (delete all photos, even those linked to other albums)', 505 null, 506 array('admin_only'=>true, 'post_only'=>true) 477 507 ); 478 508 … … 486 516 ), 487 517 '<b>Admin & POST only.</b> Move album(s). 488 <br>Set parent as 0 to move to gallery root. Only virtual categories can be moved.' 518 <br>Set parent as 0 to move to gallery root. Only virtual categories can be moved.', 519 null, 520 array('admin_only'=>true, 'post_only'=>true) 489 521 ); 490 522 … … 496 528 'image_id' => array('type'=>WS_TYPE_ID), 497 529 ), 498 '<b>Admin & POST only.</b> Sets the representative photo for an album. The photo doesn\'t have to belong to the album.' 530 '<b>Admin & POST only.</b> Sets the representative photo for an album. The photo doesn\'t have to belong to the album.', 531 null, 532 array('admin_only'=>true, 'post_only'=>true) 499 533 ); 500 534 … … 503 537 'ws_tags_getAdminList', 504 538 null, 505 '<b>Admin only.</b> ' 539 '<b>Admin only.</b>', 540 null, 541 array('admin_only'=>true) 506 542 ); 507 543 … … 510 546 'ws_tags_add', 511 547 array('name'), 512 '<b>Admin only.</b> Adds a new tag.' 548 '<b>Admin only.</b> Adds a new tag.', 549 null, 550 array('admin_only'=>true) 513 551 ); 514 552 … … 521 559 ), 522 560 '<b>Admin only.</b> Checks existence of images. 523 <br>Give <b>md5sum_list</b> if $conf[uniqueness_mode]==md5sum. Give <b>filename_list</b> if $conf[uniqueness_mode]==filename.' 561 <br>Give <b>md5sum_list</b> if $conf[uniqueness_mode]==md5sum. Give <b>filename_list</b> if $conf[uniqueness_mode]==filename.', 562 null, 563 array('admin_only'=>true) 524 564 ); 525 565 … … 534 574 ), 535 575 '<b>Admin only.</b> Checks if you have updated version of your files for a given photo, the answer can be "missing", "equals" or "differs". 536 <br>Don\'t use "thumbnail_sum" and "high_sum", these parameters are here for backward compatibility.' 576 <br>Don\'t use "thumbnail_sum" and "high_sum", these parameters are here for backward compatibility.', 577 null, 578 array('admin_only'=>true) 537 579 ); 538 580 … … 541 583 'ws_images_checkUpload', 542 584 null, 543 '<b>Admin only.</b> Checks if Piwigo is ready for upload.' 585 '<b>Admin only.</b> Checks if Piwigo is ready for upload.', 586 null, 587 array('admin_only'=>true) 544 588 ); 545 589 … … 567 611 <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" 568 612 (overwrite any existing value) and applies to single values properties like name/author/date_creation/comment. 569 <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.' 613 <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.', 614 null, 615 array('admin_only'=>true, 'post_only'=>true) 570 616 ); 571 617 … … 578 624 'comment' => array('default'=>null), 579 625 ), 580 '<b>Admin & POST only.</b> Changes properties of an album.' 626 '<b>Admin & POST only.</b> Changes properties of an album.', 627 null, 628 array('admin_only'=>true, 'post_only'=>true) 581 629 ); 582 630 … … 585 633 'ws_plugins_getList', 586 634 null, 587 '<b>Admin only.</b> Gets the list of plugins with id, name, version, state and description.' 635 '<b>Admin only.</b> Gets the list of plugins with id, name, version, state and description.', 636 null, 637 array('admin_only'=>true) 588 638 ); 589 639 … … 596 646 'pwg_token' => array(), 597 647 ), 598 '<b>Admin only.</b>' 648 '<b>Admin only.</b>', 649 null, 650 array('admin_only'=>true) 599 651 ); 600 652 … … 607 659 'pwg_token' => array(), 608 660 ), 609 '<b>Admin only.</b>' 661 '<b>Admin only.</b>', 662 null, 663 array('admin_only'=>true) 610 664 ); 611 665 … … 619 673 'pwg_token' => array(), 620 674 ), 621 '<b>Webmaster only.</b>' 675 '<b>Webmaster only.</b>', 676 null, 677 array('admin_only'=>true) 622 678 ); 623 679 … … 634 690 'pwg_token' => array(), 635 691 ), 636 '<b>Webmaster only.</b> Ignores an extension if it needs update.' 692 '<b>Webmaster only.</b> Ignores an extension if it needs update.', 693 null, 694 array('admin_only'=>true) 637 695 ); 638 696 … … 641 699 'ws_extensions_checkupdates', 642 700 null, 643 '<b>Admin only.</b> Checks if piwigo or extensions are up to date.' 701 '<b>Admin only.</b> Checks if piwigo or extensions are up to date.', 702 null, 703 array('admin_only'=>true) 644 704 ); 645 705 }
Note: See TracChangeset
for help on using the changeset viewer.