PHP 클래스 EmojiExtenderPlugin, vanilla

부터: 1.0.0 Users can change or delete emoji sets for their forums.
저자: Becky Van Bussel ([email protected])
상속: extends Gdn_Plugin
파일 보기 프로젝트 열기: vanilla/vanilla

보호된 프로퍼티들

프로퍼티 타입 설명
$emojiSets List of all available emoji sets.

공개 메소드들

메소드 설명
__construct ( ) Setup some variables and change emoji set.
addEmojiSet ( string $key, string | array $manifest, string $basePath ) Add an emoji set.
changeEmojiSet ( Emoji $emoji, string $emojiSetKey ) Change the emoji set used, either by merging or or overriding the default set.
emoji_init_handler ( Emoji $sender, array $args ) Subscribe to event in Emoji class instance method.
getEmojiSets ( ) : array Get all of the registered emoji sets.
settingsController_emojiExtender_create ( SettingsController $sender, array $args ) Configure settings page in dashboard.

보호된 메소드들

메소드 설명
getManifest ( array $emojiSet ) : array | null Get the manifest for am emoji set.

메소드 상세

__construct() 공개 메소드

Setup some variables and change emoji set.
public __construct ( )

addEmojiSet() 공개 메소드

Add an emoji set.
public addEmojiSet ( string $key, string | array $manifest, string $basePath )
$key string The key that defines the emoji set.
$manifest string | array The path to the manifest or the manifest itself.
$basePath string The url path to the emoji.

changeEmojiSet() 공개 메소드

Change the emoji set used, either by merging or or overriding the default set.
public changeEmojiSet ( Emoji $emoji, string $emojiSetKey )
$emoji Emoji The emoji object to change.
$emojiSetKey string The name of the emoji set to enable.

emoji_init_handler() 공개 메소드

Subscribe to event in Emoji class instance method.
public emoji_init_handler ( Emoji $sender, array $args )
$sender Emoji
$args array

getEmojiSets() 공개 메소드

Get all of the registered emoji sets.
public getEmojiSets ( ) : array
리턴 array Returns an array of all of the emoji sets.

getManifest() 보호된 메소드

Get the manifest for am emoji set.
protected getManifest ( array $emojiSet ) : array | null
$emojiSet array The emoji set to look up.
리턴 array | null Returns the manifest on success, `false` if the emoji should be disabled, or `null` otherwise.

settingsController_emojiExtender_create() 공개 메소드

Configure settings page in dashboard.
public settingsController_emojiExtender_create ( SettingsController $sender, array $args )
$sender SettingsController
$args array

프로퍼티 상세

$emojiSets 보호되어 있는 프로퍼티

List of all available emoji sets.
protected $emojiSets