PHP 클래스 Efficiently\Larasset\Asset

파일 보기 프로젝트 열기: efficiently/larasset

보호된 프로퍼티들

프로퍼티 타입 설명
$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