[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorUserSinceField 4 extends PhabricatorUserCustomField { 5 6 private $value; 7 8 public function getFieldKey() { 9 return 'user:since'; 10 } 11 12 public function getFieldName() { 13 return pht('User Since'); 14 } 15 16 public function getFieldDescription() { 17 return pht('Shows user join date.'); 18 } 19 20 public function shouldAppearInPropertyView() { 21 return true; 22 } 23 24 public function renderPropertyViewValue(array $handles) { 25 $absolute = phabricator_datetime( 26 $this->getObject()->getDateCreated(), 27 $this->getViewer()); 28 29 $relative = phutil_format_relative_time_detailed( 30 time() - $this->getObject()->getDateCreated(), 31 $levels = 2); 32 33 return hsprintf('%s (%s)', $absolute, $relative); 34 } 35 36 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |