1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- defined('GNUSOCIAL') || die();
- class SearchSubTrackingCommand extends Command
- {
- public function handle($channel)
- {
- $cur = $this->user;
- $all = new SearchSub();
- $all->profile_id = $cur->id;
- $all->find();
- if ($all->N == 0) {
-
- $channel->error($cur, _m('You are not tracking any searches.'));
- return;
- }
- $list = array();
- while ($all->fetch()) {
- $list[] = $all->search;
- }
-
- $separator = _m('SEPARATOR', '", "');
-
-
- $channel->output($cur, sprintf(
- _m('You are tracking searches for: "%s".'),
- implode($separator, $list)
- ));
- }
- }
|