UIAsset
1 year ago
UIAssetFetcher
1 month ago
UIAssetMerger
1 month ago
UIAsset.php
2 years ago
UIAssetCacheBuster.php
6 months ago
UIAssetCatalog.php
5 months ago
UIAssetCatalogSorter.php
2 years ago
UIAssetFetcher.php
1 year ago
UIAssetMerger.php
1 year ago
UIAssetMinifier.php
1 year ago
UIAsset.php
52 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Matomo - free/libre analytics platform |
| 5 | * |
| 6 | * @link https://matomo.org |
| 7 | * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 8 | */ |
| 9 | namespace Piwik\AssetManager; |
| 10 | |
| 11 | abstract class UIAsset |
| 12 | { |
| 13 | public abstract function validateFile(); |
| 14 | /** |
| 15 | * @return string |
| 16 | */ |
| 17 | public abstract function getAbsoluteLocation(); |
| 18 | /** |
| 19 | * @return string |
| 20 | */ |
| 21 | public abstract function getRelativeLocation(); |
| 22 | /** |
| 23 | * @return string |
| 24 | */ |
| 25 | public abstract function getBaseDirectory(); |
| 26 | /** |
| 27 | * Removes the previous file if it exists. |
| 28 | * Also tries to remove compressed version of the file. |
| 29 | * |
| 30 | * @see ProxyStaticFile::serveStaticFile(serveFile |
| 31 | * @throws Exception if the file couldn't be deleted |
| 32 | */ |
| 33 | public abstract function delete(); |
| 34 | /** |
| 35 | * @param string $content |
| 36 | * @throws \Exception |
| 37 | */ |
| 38 | public abstract function writeContent($content); |
| 39 | /** |
| 40 | * @return string |
| 41 | */ |
| 42 | public abstract function getContent(); |
| 43 | /** |
| 44 | * @return boolean |
| 45 | */ |
| 46 | public abstract function exists(); |
| 47 | /** |
| 48 | * @return int |
| 49 | */ |
| 50 | public abstract function getModificationDate(); |
| 51 | } |
| 52 |