예제 #1
0
 function showFeedForm($mirror)
 {
     $profile = Profile::staticGet('id', $mirror->subscribed);
     if ($profile) {
         $form = new EditMirrorForm($this, $profile);
         $form->show();
     }
 }
예제 #2
0
 /**
  * Handle request
  *
  * Does the subscription and returns results.
  *
  * @param Array $args unused.
  *
  * @return void
  */
 function handle($args)
 {
     // Throws exception on error
     $this->saveMirror();
     if ($this->boolean('ajax')) {
         $this->startHTML('text/xml;charset=utf-8');
         $this->elementStart('head');
         // TRANS: Page title for subscribed feed mirror.
         $this->element('title', null, _m('Subscribed'));
         $this->elementEnd('head');
         $this->elementStart('body');
         $unsubscribe = new EditMirrorForm($this, $this->profile);
         $unsubscribe->show();
         $this->elementEnd('body');
         $this->elementEnd('html');
     } else {
         $url = common_local_url('mirrorsettings');
         common_redirect($url, 303);
     }
 }
예제 #3
0
 function showFeedForm(SubMirror $mirror)
 {
     $profile = Profile::getByID($mirror->subscribed);
     $form = new EditMirrorForm($this, $profile);
     $form->show();
 }