[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/phame/celerity/ -> PhameCelerityResources.php (source)

   1  <?php
   2  
   3  /**
   4   * Defines Phabricator's static resources.
   5   */
   6  final class PhameCelerityResources extends CelerityResources {
   7  
   8    private $skin;
   9  
  10    public function setSkin($skin) {
  11      $this->skin = $skin;
  12      return $this;
  13    }
  14  
  15    public function getSkin() {
  16      return $this->skin;
  17    }
  18  
  19    public function getName() {
  20      return 'phame:'.$this->getSkin()->getName();
  21    }
  22  
  23    public function getResourceData($name) {
  24      $resource_path = $this->skin->getRootDirectory().DIRECTORY_SEPARATOR.$name;
  25      return Filesystem::readFile($resource_path);
  26    }
  27  
  28  }


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