[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorFeedConfigOptions 4 extends PhabricatorApplicationConfigOptions { 5 6 public function getName() { 7 return pht('Feed'); 8 } 9 10 public function getDescription() { 11 return pht('Feed options.'); 12 } 13 14 public function getOptions() { 15 return array( 16 $this->newOption('feed.public', 'bool', false) 17 ->setBoolOptions( 18 array( 19 pht('Allow anyone to view the feed'), 20 pht('Require authentication'), 21 )) 22 ->setSummary(pht('Should the feed be public?')) 23 ->setDescription( 24 pht( 25 "If you set this to true, you can embed Phabricator activity ". 26 "feeds in other pages using iframes. These feeds are completely ". 27 "public, and a login is not required to view them! This is ". 28 "intended for things like open source projects that want to ". 29 "expose an activity feed on the project homepage.\n\n". 30 "NOTE: You must also set `policy.allow-public` to true for this ". 31 "setting to work properly.")), 32 $this->newOption('feed.http-hooks', 'list<string>', array()) 33 ->setSummary(pht('POST notifications of feed events.')) 34 ->setDescription( 35 pht( 36 "If you set this to a list of http URIs, when a feed story is ". 37 "published a task will be created for each uri that posts the ". 38 "story data to the uri. Daemons automagically retry failures 100 ". 39 "times, waiting \$fail_count * 60s between each subsequent ". 40 "failure. Be sure to keep the daemon console (/daemon/) open ". 41 "while developing and testing your end points. You may need to". 42 "restart your daemons to start sending http requests.\n\n". 43 "NOTE: URIs are not validated, the URI must return http status ". 44 "200 within 30 seconds, and no permission checks are performed.")), 45 ); 46 } 47 48 }
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 |