PHP 8.1.33
Preview: WebAssetRegistryInterface.php Size: 1.61 KB
/home/jambtst2015/9jahookups.com/libraries/src/WebAsset/WebAssetRegistryInterface.php

<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\WebAsset;

\defined('JPATH_PLATFORM') or die;

use Joomla\CMS\WebAsset\Exception\UnknownAssetException;

/**
 * Web Asset Registry interface
 *
 * @since  4.0.0
 */
interface WebAssetRegistryInterface
{
	/**
	 * Get an existing Asset from a registry, by asset name and asset type.
	 *
	 * @param   string  $type  Asset type, script or style etc
	 * @param   string  $name  Asset name
	 *
	 * @return  WebAssetItem
	 *
	 * @throws  UnknownAssetException  When Asset cannot be found
	 *
	 * @since   4.0.0
	 */
	public function get(string $type, string $name): WebAssetItemInterface;

	/**
	 * Add Asset to registry of known assets
	 *
	 * @param   string                 $type   Asset type, script or style etc
	 * @param   WebAssetItemInterface  $asset  Asset instance
	 *
	 * @return  self
	 *
	 * @since   4.0.0
	 */
	public function add(string $type, WebAssetItemInterface $asset): self;

	/**
	 * Remove Asset from registry.
	 *
	 * @param   string  $type  Asset type, script or style etc
	 * @param   string  $name  Asset name
	 *
	 * @return  self
	 *
	 * @since   4.0.0
	 */
	public function remove(string $type, string $name): self;

	/**
	 * Check whether the asset exists in the registry.
	 *
	 * @param   string  $type  Asset type, script or style etc
	 * @param   string  $name  Asset name
	 *
	 * @return  boolean
	 *
	 * @since   4.0.0
	 */
	public function exists(string $type, string $name): bool;
}

Directory Contents

Dirs: 2 × Files: 7

Name Size Perms Modified Actions
AssetItem DIR
- drwxr-xr-x 2021-08-23 19:07:08
Edit Download
Exception DIR
- drwxr-xr-x 2021-08-23 19:07:08
Edit Download
671 B lrw-r--r-- 2021-08-23 19:07:08
Edit Download
6.28 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
2.38 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
27.35 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
2.21 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
10.35 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
1.61 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).