[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/uiexample/examples/ -> PhabricatorUINotificationExample.php (source)

   1  <?php
   2  
   3  final class PhabricatorUINotificationExample extends PhabricatorUIExample {
   4  
   5    public function getName() {
   6      return 'Notifications';
   7    }
   8  
   9    public function getDescription() {
  10      return hsprintf('Use <tt>JX.Notification</tt> to create notifications.');
  11    }
  12  
  13    public function renderExample() {
  14  
  15      require_celerity_resource('phabricator-notification-css');
  16      Javelin::initBehavior('phabricator-notification-example');
  17  
  18      $content = javelin_tag(
  19        'a',
  20        array(
  21          'sigil' => 'notification-example',
  22          'class' => 'button green',
  23        ),
  24        'Show Notification');
  25  
  26      $content = hsprintf('<div style="padding: 1em 3em;">%s</div>', $content);
  27  
  28      return $content;
  29    }
  30  }


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