PHP 클래스 Craft\EmbeddedAssetsPlugin

Thank you for using Craft Embedded Assets!
또한 보기: https://github.com/benjamminf/craft-embedded-assets
상속: extends craft\BasePlugin
파일 보기 프로젝트 열기: benjamminf/craft-embedded-assets

공개 메소드들

메소드 설명
defineAdditionalAssetTableAttributes ( ) : array Hook for adding additional table attributes to the Assets manager.
getAssetTableAttributeHtml ( $element, $attribute ) : null | string Hook for formatting the HTML for embedded asset attributes in the Assets manager.
getCacheKey ( ) : string
getCraftMinimumVersion ( )
getDescription ( )
getDeveloper ( )
getDeveloperUrl ( )
getDocumentationUrl ( )
getFileNamePrefix ( ) : mixed Shorthand for getting the file name prefix setting.
getName ( )
getPHPMinimumVersion ( )
getParameters ( ) : mixed Shorthand for getting the parameters setting.
getReleaseFeedUrl ( )
getSchemaVersion ( )
getSettingsHtml ( ) : mixed Renders the plugin's settings page.
getVersion ( )
getWhitelist ( ) : mixed Shorthand for getting the whitelist setting.
init ( ) Initialise the plugin by loading dependencies and resources.
isCompatible ( ) : boolean Returns if the plugin is compatible with the current system stack.
isCraftRequiredVersion ( ) : boolean Defines the earliest version of Craft that this plugin is compatible with.
isPHPRequiredVersion ( ) : boolean Defines the earliest version of PHP that this plugin is compatible with.
loadDependencies ( ) Loads all dependencies for this plugin.
onBeforeInstall ( ) : boolean Checks if the plugin is compatible before installation.
prepSettings ( array $postSettings ) : array Formats values from the CP settings form to be saved into the DB.

보호된 메소드들

메소드 설명
defineSettings ( ) : array The default settings for the plugin.
includeResources ( ) Loads all CSS and JS resources for the plugin.

비공개 메소드들

메소드 설명
_getThumbnails ( ) : array Returns an array of all embedded assets thumbnails, indexed by the asset file models ID.

메소드 상세

defineAdditionalAssetTableAttributes() 공개 메소드

Adds a provider attribute for embedded assets to display their providers.

defineSettings() 보호된 메소드

The default settings for the plugin.
protected defineSettings ( ) : array
리턴 array

getAssetTableAttributeHtml() 공개 메소드

Hook for formatting the HTML for embedded asset attributes in the Assets manager.
public getAssetTableAttributeHtml ( $element, $attribute ) : null | string
$element
$attribute
리턴 null | string

getCacheKey() 공개 정적인 메소드

public static getCacheKey ( ) : string
리턴 string

getCraftMinimumVersion() 공개 메소드

getDescription() 공개 메소드

public getDescription ( )

getDeveloper() 공개 메소드

public getDeveloper ( )

getDeveloperUrl() 공개 메소드

public getDeveloperUrl ( )

getDocumentationUrl() 공개 메소드

public getDocumentationUrl ( )

getFileNamePrefix() 공개 정적인 메소드

Shorthand for getting the file name prefix setting.
public static getFileNamePrefix ( ) : mixed
리턴 mixed

getName() 공개 메소드

public getName ( )

getPHPMinimumVersion() 공개 메소드

getParameters() 공개 정적인 메소드

Shorthand for getting the parameters setting.
public static getParameters ( ) : mixed
리턴 mixed

getReleaseFeedUrl() 공개 메소드

public getReleaseFeedUrl ( )

getSchemaVersion() 공개 메소드

public getSchemaVersion ( )

getSettingsHtml() 공개 메소드

Renders the plugin's settings page.
public getSettingsHtml ( ) : mixed
리턴 mixed

getVersion() 공개 메소드

public getVersion ( )

getWhitelist() 공개 정적인 메소드

Shorthand for getting the whitelist setting.
public static getWhitelist ( ) : mixed
리턴 mixed

includeResources() 보호된 메소드

Loads all CSS and JS resources for the plugin.
protected includeResources ( )

init() 공개 메소드

Initialise the plugin by loading dependencies and resources.
public init ( )

isCompatible() 공개 메소드

Returns if the plugin is compatible with the current system stack.
public isCompatible ( ) : boolean
리턴 boolean

isCraftRequiredVersion() 공개 메소드

Defines the earliest version of Craft that this plugin is compatible with.
public isCraftRequiredVersion ( ) : boolean
리턴 boolean - Whether the current installed version of Craft is compatible

isPHPRequiredVersion() 공개 메소드

Defines the earliest version of PHP that this plugin is compatible with.
public isPHPRequiredVersion ( ) : boolean
리턴 boolean - Whether the current version of PHP is compatible

loadDependencies() 공개 정적인 메소드

The plugin currently depends on the Essence library.
또한 보기: https://github.com/essence/essence
public static loadDependencies ( )

onBeforeInstall() 공개 메소드

Checks if the plugin is compatible before installation.
public onBeforeInstall ( ) : boolean
리턴 boolean

prepSettings() 공개 메소드

Formats values from the CP settings form to be saved into the DB.
public prepSettings ( array $postSettings ) : array
$postSettings array
리턴 array