Class: smilies_plugin
Source Location: /blogs/plugins/_smilies.plugin.php
Class smilies_plugin
Class Overview
|
Located in /blogs/plugins/_smilies.plugin.php [line 20] Plugin | --smilies_plugin |
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From Plugin |
Inherited From Plugin
|
[ Top ]
Property Summary
| mixed | $apply_rendering | |
| mixed | $code | |
| mixed | $group | |
| mixed | $name | |
| mixed | $number_of_installs | |
| mixed | $priority | |
| mixed | $version |
[ Top ]
Method Summary
| boolean | AdminDisplayToolbar() | Display a toolbar in admin |
| boolean | DisplayCommentToolbar() | Event handler: Called when displaying editor toolbars. |
| boolean | display_smiley_bar() | Display the smiley toolbar |
| void | FilterCommentContent() | Perform rendering |
| array | GetDefaultSettings() | Defaults for user specific settings: "Display toolbar" |
| array | GetDefaultUserSettings() | Allowing the user to override the display of the toolbar. |
| void | get_smiley() | |
| array | InitSmilies() | Initiates the smiley array if not already initiated |
| void | PluginInit() | Init |
| string | preg_insert_smilies_callback() | This callback gets called once after every tags+text chunk |
| void | RenderItemAsHtml() | Perform rendering |
| void | ReplaceTagSafe() | Replace smilies in non-HTML-tag portions of the text. |
| void | smiliescmp() | sorts the smilies' array by length |
[ Top ]
Properties
mixed
$apply_rendering
= 'opt-out' [line 26]
Redefinition of:
- Plugin::$apply_rendering
- If this is a rendering plugin, when should rendering apply?
[ Top ]
mixed
$code
= 'b2evSmil' [line 22]
Redefinition of:
- Plugin::$code
- Globally unique code for this plugin functionality. 32 chars. MUST BE SET.
[ Top ]
mixed
$group
= 'rendering' [line 27]
Redefinition of:
- Plugin::$group
- Main group of the plugin.
[ Top ]
mixed
$name
= 'Smilies' [line 23]
Redefinition of:
- Plugin::$name
- Default plugin name as it will appear in lists.
[ Top ]
mixed
$number_of_installs
= 3 [line 28]
Redefinition of:
- Plugin::$number_of_installs
- Number of allowed installs.
[ Top ]
mixed
$version
= '1.10' [line 25]
Redefinition of:
- Plugin::$version
- Plugin version number (max 42 chars, so obscure CVS Revision keywords get handled).
[ Top ]
Methods
AdminDisplayToolbar [line 167]
|
Display a toolbar in admin
Parameters:| array | &$params: | Associative array of parameters |
API Tags:
| Return: | did we display a toolbar? |
Redefinition of:
- Plugin::AdminDisplayToolbar()
- Event handler: Called when displaying editor toolbars.
[ Top ]
DisplayCommentToolbar [line 183]
|
Event handler: Called when displaying editor toolbars.
Parameters:| array | &$params: | Associative array of parameters |
API Tags:
| Return: | did we display a toolbar? |
Redefinition of:
- Plugin::DisplayCommentToolbar()
- Event handler: Called when displaying editor toolbars.
[ Top ]
display_smiley_bar [line 200]
|
Display the smiley toolbar
API Tags:
| Return: | did we display a toolbar? |
[ Top ]
FilterCommentContent [line 228]
|
Perform rendering
Parameters:| &$params: |
API Tags:
| See: | Plugin::FilterCommentContent() |
Redefinition of:
- Plugin::FilterCommentContent()
- Event handler: called to filter the comment's content
[ Top ]
GetDefaultSettings [line 67]
|
Defaults for user specific settings: "Display toolbar"
Redefinition of:
- Plugin::GetDefaultSettings()
- Define here default settings that are then available in the backoffice.
[ Top ]
GetDefaultUserSettings [line 149]
|
Allowing the user to override the display of the toolbar.
Redefinition of:
- Plugin::GetDefaultUserSettings()
- Define here default user settings that are then available in the backoffice.
[ Top ]
InitSmilies [line 340]
|
Initiates the smiley array if not already initiated
Attempts to use skin specific smileys where available
- skins_adm/skin/rsc/smilies/
- skins/skin/smilies/
- rsc/smilies/
API Tags:
| Return: | of available smilies( code, image url ) |
[ Top ]
PluginInit [line 54]
|
Init
Parameters:| &$params: |
Redefinition of:
- Plugin::PluginInit()
- Init the Plugin after it has been registered/instantiated.
[ Top ]
preg_insert_smilies_callback [line 296]
|
This callback gets called once after every tags+text chunk
Parameters:| $text: |
API Tags:
| Return: | Text with replaced smilies |
[ Top ]
RenderItemAsHtml [line 243]
|
Perform rendering
Parameters:| &$params: |
API Tags:
| See: | Plugin::RenderItemAsHtml() |
Redefinition of:
- Plugin::RenderItemAsHtml()
- Event handler: Called when rendering item/post contents as HTML. (CACHED)
[ Top ]
ReplaceTagSafe [line 306]
|
Replace smilies in non-HTML-tag portions of the text.
Parameters:| $text: |
API Tags:
| Uses: | callback_on_non_matching_blocks() |
[ Top ]
