1234567891011121314151617181920212223242526272829303132 |
- <?php
- class SearchSubTrackingCommand extends Command
- {
- 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)));
- }
- }
|