Commit 45392ca404bb8a52fd3ef807d84427c77511c111
1 parent
04c39b0c
Added method placeholder to get recently viewed documents and folders
Committed by: Tohir Solomons
Showing
1 changed file
with
18 additions
and
0 deletions
webservice/clienttools/services/0.9/kt.php
| ... | ... | @@ -1346,6 +1346,24 @@ Fatal error: Cannot unset string offsets in on line 981 |
| 1346 | 1346 | return true; |
| 1347 | 1347 | } |
| 1348 | 1348 | |
| 1349 | + /** | |
| 1350 | + * Method to get the recently viewed documents and folders. | |
| 1351 | + */ | |
| 1352 | + function get_recently_viewed() | |
| 1353 | + { | |
| 1354 | + $this->logTrace ((__METHOD__.'('.__FILE__.' '.__LINE__.')'), 'Enter Function' ); | |
| 1355 | + $kt = &$this->KT; | |
| 1356 | + | |
| 1357 | + $items = array(); | |
| 1358 | + $folders = array(); | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + // Fake for the timebeing | |
| 1362 | + //$folders = array(array('id'=>'2', 'path'=>'/F_0/F_1/F_2', 'name'=>'Dropped Documents (fake)'), array('id'=>'3', 'path'=>'/F_0/F_1/F_2/F_3', 'name'=>'admin (fake)')); | |
| 1363 | + | |
| 1364 | + $this->setResponse(array('items'=>$items, 'folders'=>$folders)); | |
| 1365 | + } | |
| 1366 | + | |
| 1349 | 1367 | |
| 1350 | 1368 | |
| 1351 | 1369 | ... | ... |