PHP 트레잇 Bolt\Extension\AssetTrait

저자: Gawain Lynch ([email protected])
파일 보기 프로젝트 열기: bolt/bolt

보호된 메소드들

메소드 설명
addJquery ( ) Add jQuery to the output.
disableJquery ( ) Don't add jQuery to the output.
extendAssetServices ( ) Call this in register method.
getBaseDirectory ( ) : Bolt\Filesystem\Handler\DirectoryInterface
getContainer ( ) : Pimple
getName ( ) : string
getWebDirectory ( ) : Bolt\Filesystem\Handler\DirectoryInterface
registerAssets ( ) : Bolt\Asset\AssetInterface[] Returns a list of assets to register. Assets can be a file, snippet, or widget.

비공개 메소드들

메소드 설명
addAsset ( Bolt\Asset\AssetInterface $asset ) Add an file, snippet or widget asset to the render queue.
isAbsoluteUrl ( string $url ) : boolean
loadAssets ( ) Merges assets returned from registerAssets() to our list.
normalizeAsset ( Bolt\Asset\File\FileAssetInterface $asset ) Normalizes the path and package name of the asset file.

메소드 상세

addJquery() 보호된 메소드

Add jQuery to the output.
사용 중단: Deprecated since 3.0, to be removed in 4.0.
protected addJquery ( )

disableJquery() 보호된 메소드

Don't add jQuery to the output.
사용 중단: Deprecated since 3.0, to be removed in 4.0.
protected disableJquery ( )

extendAssetServices() 최종 보호된 메소드

Call this in register method.
final protected extendAssetServices ( )

getBaseDirectory() 추상적인 보호된 메소드

abstract protected getBaseDirectory ( ) : Bolt\Filesystem\Handler\DirectoryInterface
리턴 Bolt\Filesystem\Handler\DirectoryInterface

getContainer() 추상적인 보호된 메소드

abstract protected getContainer ( ) : Pimple
리턴 Pimple

getName() 추상적인 보호된 메소드

abstract protected getName ( ) : string
리턴 string

getWebDirectory() 추상적인 보호된 메소드

abstract protected getWebDirectory ( ) : Bolt\Filesystem\Handler\DirectoryInterface
리턴 Bolt\Filesystem\Handler\DirectoryInterface

registerAssets() 보호된 메소드

Returns a list of assets to register. Assets can be a file, snippet, or widget.
protected registerAssets ( ) : Bolt\Asset\AssetInterface[]
리턴 Bolt\Asset\AssetInterface[]