PHP Класс Efficiently\Larasset\Asset

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$args
$assetPort
$assetsHost
$assetsPrefix
$manifests

Открытые методы

Метод Описание
__construct ( mixed $args = null ) Mutiple args $dir, $path, $options
assetPath ( string $source, array $options = [] ) : string Computes the path to asset in public directory.
assetUrl ( string $source, array $options = [] ) : string Computes the full URL to a asset in the public directory.
faviconLinkTag ( string $source = null, array $attributes = [] ) : string Returns a HTML favicon link tag for the source and attributes specified as arguments.
imageTag ( string $source, string $alt = null, array $attributes = [] ) : string Returns an HTML image element for the source and attributes specified as arguments from the assets pipeline.
javascriptIncludeTag ( array | string $sources = "application", array $attributes = [] ) : string Returns an HTML script tag for the sources and attributes specified as arguments.
manifest ( $args = null )
stylesheetLinkTag ( array | string $sources = "application", array $attributes = [] ) : string Returns a HTML stylesheet link tag for the sources and attributes specified as arguments.

Защищенные методы

Метод Описание
getHostname ( )

Описание методов

__construct() публичный Метод

Mutiple args $dir, $path, $options
public __construct ( mixed $args = null )
$args mixed

assetPath() публичный Метод

Computes the path to asset in public directory.
public assetPath ( string $source, array $options = [] ) : string
$source string
$options array
Результат string

assetUrl() публичный Метод

This will use Asset::assetPath() internally, so most of their behaviors will be the same.
public assetUrl ( string $source, array $options = [] ) : string
$source string
$options array
Результат string

faviconLinkTag() публичный Метод

Returns a HTML favicon link tag for the source and attributes specified as arguments.
public faviconLinkTag ( string $source = null, array $attributes = [] ) : string
$source string Relative URL
$attributes array HTML attributes
Результат string

getHostname() защищенный Метод

protected getHostname ( )

imageTag() публичный Метод

Returns an HTML image element for the source and attributes specified as arguments from the assets pipeline.
public imageTag ( string $source, string $alt = null, array $attributes = [] ) : string
$source string Relative URL
$alt string
$attributes array HTML attributes
Результат string

javascriptIncludeTag() публичный Метод

Returns an HTML script tag for the sources and attributes specified as arguments.
public javascriptIncludeTag ( array | string $sources = "application", array $attributes = [] ) : string
$sources array | string default "application"
$attributes array HTML attributes
Результат string

manifest() публичный Метод

public manifest ( $args = null )

stylesheetLinkTag() публичный Метод

Returns a HTML stylesheet link tag for the sources and attributes specified as arguments.
public stylesheetLinkTag ( array | string $sources = "application", array $attributes = [] ) : string
$sources array | string default "application"
$attributes array HTML attributes
Результат string

Описание свойств

$args защищенное свойство

protected $args

$assetPort защищенное свойство

protected $assetPort

$assetsHost защищенное свойство

protected $assetsHost

$assetsPrefix защищенное свойство

protected $assetsPrefix

$manifests защищенное свойство

protected $manifests