[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/celerity/resources/ -> CelerityPhabricatorResources.php (source)

   1  <?php
   2  
   3  /**
   4   * Defines Phabricator's static resources.
   5   */
   6  final class CelerityPhabricatorResources extends CelerityResourcesOnDisk {
   7  
   8    public function getName() {
   9      return 'phabricator';
  10    }
  11  
  12    public function getPathToResources() {
  13      return $this->getPhabricatorPath('webroot/');
  14    }
  15  
  16    public function getPathToMap() {
  17      return $this->getPhabricatorPath('resources/celerity/map.php');
  18    }
  19  
  20    private function getPhabricatorPath($to_file) {
  21      return dirname(phutil_get_library_root('phabricator')).'/'.$to_file;
  22    }
  23  
  24    public function getResourcePackages() {
  25      return include $this->getPhabricatorPath('resources/celerity/packages.php');
  26    }
  27  
  28  }


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