[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/feed/story/ -> PhabricatorFeedStoryStatus.php (source)

   1  <?php
   2  
   3  final class PhabricatorFeedStoryStatus extends PhabricatorFeedStory {
   4  
   5    public function getPrimaryObjectPHID() {
   6      return $this->getAuthorPHID();
   7    }
   8  
   9    public function renderView() {
  10      $data = $this->getStoryData();
  11  
  12      $author_phid = $data->getAuthorPHID();
  13  
  14      $view = $this->newStoryView();
  15      $view->setAppIcon('calendar-dark');
  16  
  17      $view->setTitle($this->linkTo($author_phid));
  18      $view->setImage($this->getHandle($author_phid)->getImageURI());
  19  
  20      $content = $this->renderSummary($data->getValue('content'), $len = null);
  21      $view->appendChild($content);
  22  
  23      return $view;
  24    }
  25  
  26    public function renderText() {
  27      $author_handle = $this->getHandle($this->getPrimaryObjectPHID());
  28      $author_name = $author_handle->getLinkName();
  29      $author_uri = PhabricatorEnv::getURI($author_handle->getURI());
  30  
  31      $text = pht('% updated their status %s', $author_name, $author_uri);
  32  
  33      return $text;
  34    }
  35  
  36  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1