[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Defines the location of static resources. 5 */ 6 abstract class CelerityResources { 7 8 private $map; 9 10 abstract public function getName(); 11 abstract public function getResourceData($name); 12 13 public function getResourceModifiedTime($name) { 14 return 0; 15 } 16 17 public function getCelerityHash($data) { 18 $tail = PhabricatorEnv::getEnvConfig('celerity.resource-hash'); 19 $hash = PhabricatorHash::digest($data, $tail); 20 return substr($hash, 0, 8); 21 } 22 23 public function getResourceType($path) { 24 return CelerityResourceTransformer::getResourceType($path); 25 } 26 27 public function getResourceURI($hash, $name) { 28 $resources = $this->getName(); 29 return "/res/{$resources}/{$hash}/{$name}"; 30 } 31 32 public function getResourcePackages() { 33 return array(); 34 } 35 36 public function loadMap() { 37 return array(); 38 } 39 40 }
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 |