123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?php
-
- if (!defined('GNUSOCIAL')) { exit(1); }
- class ApiQvitterUpdateBookmarksAction extends ApiAuthAction
- {
- var $bookmarks = null;
- protected $needPost = true;
-
- protected function prepare(array $args=array())
- {
- parent::prepare($args);
- $this->format = 'json';
- $this->bookmarks = $this->trimmed('bookmarks');
- return true;
- }
-
- protected function handle()
- {
- parent::handle();
-
- $saved = Profile_prefs::setData($this->scoped, 'qvitter', 'bookmarks', $this->bookmarks);
- $this->initDocument('json');
- $this->showJsonObjects($saved);
- $this->endDocument('json');
- }
- }
|