Plugin object
Parent object for Module, Input, Template, Theme.
More...
|
| __construct ($name, $plugin_type, $path_type) |
|
| get_version () |
|
| load_library ($library='') |
|
| load_file ($file='') |
|
| load_varFile ($file='') |
|
| load_engineFile ($file='') |
|
| get_engineFileURL ($file='', $path=false) |
|
| get_fileURL ($file='', $path=null, $default='') |
|
| get_varFileURL ($file='', $path=false, $default='') |
|
| get_filePath ($file='') |
|
| get_varFilePath ($file='') |
|
| add_JSFile ($file) |
|
| add_JSEngineFile ($file) |
|
| add_JSExternFile ($file) |
|
| add_JSScript ($script, $unique=false) |
|
| add_JSPreScript ($script, $unique=false) |
|
| add_JSWindowEventScript ($event, $script, $unique=false) |
|
| add_JSLoadScript ($script, $unique=false) |
|
| add_JSUnloadScript ($script, $unique=false) |
|
| add_styleFile ($file, $media='', $condition='') |
|
| add_styleScript ($css) |
|
| add_styleIncludedFile ($file) |
|
| add_StyleExternFile ($file, $media='', $condition='') |
|
| set_RSSFeed ($title, $url) |
|
| add_headerExtra ($content='') |
|
| install () |
|
| uninstall () |
|
| is_installed () |
|
| update ($version, $more='') |
|
| add_translation ($more='', $lg=null) |
|
| get_translation ($value, $data=null) |
|
| get_languages () |
|
| execute_onCaMykSInitialise () |
|
| execute_onCaMykSPageLoad () |
|
| execute_onCaMykSBodyOpen () |
|
| execute_onCaMykSBodyClose () |
|
| execute_onCaMykSAdminPageLoad () |
|
| execute_onCaMykSAdminBodyOpen () |
|
| execute_onCaMykSAdminBodyClose () |
|
| execute_onCaMykSTerminate () |
|
| get_requestLink ($params=array()) |
|
| get_requestJSLink ($params=array()) |
|
| execute_request () |
|
| get_varFile ($file) |
|
Plugin object
Parent object for Module, Input, Template, Theme.
Engine / Object Library
- Author
- CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Version
- 1.0.8.1
- Date
- Creation: Jun 2005
-
Modification: Jan 2021
- Copyright
- 2005 - 2021 CaMykS Team
- Note
- This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Plugin class.
- Author
- CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
◆ __construct()
Plugin::__construct |
( |
|
$name, |
|
|
|
$plugin_type, |
|
|
|
$path_type |
|
) |
| |
Class constructor.
- Parameters
-
string | $name | |
string | $plugin_type | |
string | $path_type | |
- Returns
- void
◆ get_version()
Return version value.
- Returns
- string
◆ load_library()
Plugin::load_library |
( |
|
$library = '' | ) |
|
Load library file.
- Parameters
-
- Returns
- boolean success
◆ load_file()
Plugin::load_file |
( |
|
$file = '' | ) |
|
Load a file from plugin folder.
- Parameters
-
- Returns
- boolean success
◆ load_varFile()
Plugin::load_varFile |
( |
|
$file = '' | ) |
|
Load a file from var plugin folder.
- Parameters
-
- Returns
- boolean success
◆ load_engineFile()
Plugin::load_engineFile |
( |
|
$file = '' | ) |
|
Load a file from engine data folder.
- Parameters
-
- Returns
- void
◆ get_engineFileURL()
Plugin::get_engineFileURL |
( |
|
$file = '' , |
|
|
|
$path = false |
|
) |
| |
Return a file URL from engine data folder.
- Parameters
-
string | $file | |
integer | $path | - Available values for path are
0 Default
1 Absolute
2 Relative
|
- Returns
- string
◆ get_fileURL()
Plugin::get_fileURL |
( |
|
$file = '' , |
|
|
|
$path = null , |
|
|
|
$default = '' |
|
) |
| |
Return plugin file URL.
- Parameters
-
string | $file | |
integer | $path | - Available values for path are
0 Default
1 Absolute
2 Relative
|
string | $default | |
- Returns
- string
◆ get_varFileURL()
Plugin::get_varFileURL |
( |
|
$file = '' , |
|
|
|
$path = false , |
|
|
|
$default = '' |
|
) |
| |
Return plugin var file URL.
- Parameters
-
string | $file | |
boolean | $path | |
string | $default | |
- Returns
- string
◆ get_filePath()
Plugin::get_filePath |
( |
|
$file = '' | ) |
|
Return file path.
- Parameters
-
- Returns
- string
◆ get_varFilePath()
Plugin::get_varFilePath |
( |
|
$file = '' | ) |
|
Return file from var plugin folder.
- Parameters
-
- Returns
- string
◆ set_redirect()
Plugin::set_redirect |
( |
|
$time, |
|
|
|
$url = '' |
|
) |
| |
|
protected |
Add a redirection to given page URL.
- Parameters
-
integer | $time | the timeout in second |
string | $url | the url to target |
- Returns
- void
◆ add_meta()
Plugin::add_meta |
( |
|
$name, |
|
|
|
$content, |
|
|
|
$method = 'name' |
|
) |
| |
|
protected |
Add a meta tag to the page.
- Parameters
-
string | $name | |
string | $content | |
string | $method | |
- Returns
- void
◆ add_JSFile()
Plugin::add_JSFile |
( |
|
$file | ) |
|
Add a plugin Javascript file to the page.
- Parameters
-
- Returns
- void
◆ add_JSEngineFile()
Plugin::add_JSEngineFile |
( |
|
$file | ) |
|
Add an engine Javascript file to the page.
- Parameters
-
- Returns
- void
◆ add_JSExternFile()
Plugin::add_JSExternFile |
( |
|
$file | ) |
|
Add an external javascript file to the page.
- Parameters
-
- Returns
- void
◆ add_JSScript()
Plugin::add_JSScript |
( |
|
$script, |
|
|
|
$unique = false |
|
) |
| |
Add a Javascript script to the page.
- Parameters
-
string | $script | |
boolean | $unique | |
- Returns
- void
◆ add_JSPreScript()
Plugin::add_JSPreScript |
( |
|
$script, |
|
|
|
$unique = false |
|
) |
| |
Add a Javascript pre script to the page.
- Parameters
-
string | $script | |
boolean | $unique | |
- Returns
- void
◆ add_JSWindowEventScript()
Plugin::add_JSWindowEventScript |
( |
|
$event, |
|
|
|
$script, |
|
|
|
$unique = false |
|
) |
| |
Add a Javascript script to the page events.
- Parameters
-
string | $event | |
string | $script | |
boolean | $unique | |
- Returns
- void
◆ add_JSLoadScript()
Plugin::add_JSLoadScript |
( |
|
$script, |
|
|
|
$unique = false |
|
) |
| |
Add a Javascript script to the page load event.
- Parameters
-
string | $script | |
boolean | $unique | |
- Returns
- void
◆ add_JSUnloadScript()
Plugin::add_JSUnloadScript |
( |
|
$script, |
|
|
|
$unique = false |
|
) |
| |
Add a Javascript script to the page unload event.
- Parameters
-
string | $script | |
boolean | $unique | |
- Returns
- void
◆ add_styleFile()
Plugin::add_styleFile |
( |
|
$file, |
|
|
|
$media = '' , |
|
|
|
$condition = '' |
|
) |
| |
Add a CSS style file to the page.
- Parameters
-
string | $file | |
string | $media | |
string | $condition | |
- Returns
- void
◆ add_styleScript()
Plugin::add_styleScript |
( |
|
$css | ) |
|
Add a CSS style script to the page.
- Parameters
-
- Returns
- void
◆ add_styleIncludedFile()
Plugin::add_styleIncludedFile |
( |
|
$file | ) |
|
Add a CSS style file to be included in the page.
- Parameters
-
- Returns
- void
◆ add_StyleExternFile()
Plugin::add_StyleExternFile |
( |
|
$file, |
|
|
|
$media = '' , |
|
|
|
$condition = '' |
|
) |
| |
Add an external javascript file to the page.
- Parameters
-
string | $file | |
string | $media | |
string | $condition | |
- Returns
- void
◆ set_RSSFeed()
Plugin::set_RSSFeed |
( |
|
$title, |
|
|
|
$url |
|
) |
| |
Add RSS Feed link.
- Parameters
-
- Returns
- void
◆ add_headerExtra()
Plugin::add_headerExtra |
( |
|
$content = '' | ) |
|
Add extra texts to page header
- Parameters
-
- Returns
- void
◆ install()
Install plugin.
- Returns
- boolean
Reimplemented in Content_TwitterStatusesViewer, Content_SystemSiteReport, Content_GoogleSearchResultsViewer, Content_GooglePoIMapViewer, Content_GoogleMapsViewer, Content_GenericSiteMap, Content_GenericRandomText, Content_GenericQuickMessage, Content_GenericPetitionViewer, Content_GenericPageRedirector, Content_GenericPageList, Content_GenericNews, Content_GenericMenu, Content_GenericLegalMentions, Content_GenericHTMLNews, Content_GenericHTMLContent, Content_GenericGuestBookViewer, Content_GenericGlossaryViewer, Content_GenericGallery, Content_GenericFaq, Content_GenericBlogsViewer, Content_GenericArticle, Admin_User, Admin_ToDoList, Admin_SystemUniqueIDManager, Admin_SystemReport, Admin_SystemNotifications, Admin_Statistics, Admin_SiteReport, Admin_SecurityTools, Admin_PluginManager, Admin_MyShortcuts, Admin_MyMessages, Admin_MonitoringUserAgentChecker, Admin_Group, Admin_GooglePoIMapManager, Admin_GenericPetitionManager, Admin_GenericMediaLibraryManager, Admin_GenericGuestBookManager, Admin_GenericGlossaryManager, Admin_GenericFAQManager, Admin_GenericEmailingManager, Admin_GenericDownloadManager, Admin_GenericDirectoryManager, Admin_GenericContactFormManager, Admin_GenericBlogsManager, Admin_ContentPage, StripePayment, and SecurimageCaptcha.
◆ uninstall()
Uninstall plugin.
- Returns
- boolean
Reimplemented in Content_TwitterStatusesViewer, Content_SystemSiteReport, Content_GoogleSearchResultsViewer, Content_GooglePoIMapViewer, Content_GoogleMapsViewer, Content_GenericSiteMap, Content_GenericRandomText, Content_GenericQuickMessage, Content_GenericPetitionViewer, Content_GenericPageRedirector, Content_GenericPageList, Content_GenericNews, Content_GenericMenu, Content_GenericLegalMentions, Content_GenericHTMLNews, Content_GenericHTMLContent, Content_GenericGuestBookViewer, Content_GenericGlossaryViewer, Content_GenericGallery, Content_GenericFaq, Content_GenericBlogsViewer, Content_GenericArticle, Admin_SystemUniqueIDManager, Admin_SystemReport, Admin_SystemNotifications, Admin_Statistics, Admin_SecurityTools, Admin_PluginManager, Admin_MyMessages, Admin_MonitoringUserAgentChecker, Admin_Group, Admin_GenericMediaLibraryManager, Admin_GenericGuestBookManager, Admin_GenericGlossaryManager, Admin_GenericEmailingManager, Admin_GenericDownloadManager, Admin_GenericContactFormManager, and Admin_ContentPage.
◆ is_installed()
Check if plugin is installed.
- Returns
- boolean
Reimplemented in Content_TwitterStatusesViewer, Content_SystemSiteReport, Content_GoogleSearchResultsViewer, Content_GooglePoIMapViewer, Content_GoogleMapsViewer, Content_GenericSiteMap, Content_GenericRandomText, Content_GenericQuickMessage, Content_GenericPetitionViewer, Content_GenericPageRedirector, Content_GenericPageList, Content_GenericNews, Content_GenericMenu, Content_GenericLegalMentions, Content_GenericHTMLNews, Content_GenericHTMLContent, Content_GenericGuestBookViewer, Content_GenericGlossaryViewer, Content_GenericGallery, Content_GenericFaq, Content_GenericBlogsViewer, Content_GenericArticle, Admin_User, Admin_ToDoList, Admin_SystemUniqueIDManager, Admin_SystemReport, Admin_SystemNotifications, Admin_Statistics, Admin_SiteReport, Admin_SecurityTools, Admin_PluginManager, Admin_MyShortcuts, Admin_MyMessages, Admin_MonitoringUserAgentChecker, Admin_Group, Admin_GooglePoIMapManager, Admin_GenericPetitionManager, Admin_GenericMediaLibraryManager, Admin_GenericGuestBookManager, Admin_GenericGlossaryManager, Admin_GenericFAQManager, Admin_GenericEmailingManager, Admin_GenericDownloadManager, Admin_GenericDirectoryManager, Admin_GenericContactFormManager, Admin_GenericBlogsManager, and Admin_ContentPage.
◆ update()
Plugin::update |
( |
|
$version, |
|
|
|
$more = '' |
|
) |
| |
◆ add_toHtaccess()
Plugin::add_toHtaccess |
( |
|
$content = '' | ) |
|
|
protected |
Add content to .htaccess file
- Parameters
-
- Returns
- boolean success
◆ add_translation()
Plugin::add_translation |
( |
|
$more = '' , |
|
|
|
$lg = null |
|
) |
| |
Load language dictionnary file.
- Parameters
-
- Returns
- void
◆ get_translation()
Plugin::get_translation |
( |
|
$value, |
|
|
|
$data = null |
|
) |
| |
Return locale value.
- Parameters
-
- Returns
- string
Reimplemented in Input, and Module.
◆ get_languages()
Plugin::get_languages |
( |
| ) |
|
Load available language files for the plugin
- Returns
- void
◆ add_dependency()
Plugin::add_dependency |
( |
|
$plugin, |
|
|
|
$type, |
|
|
|
$version = '1.0' , |
|
|
|
$mandatory = false |
|
) |
| |
|
protected |
Add a dependency.
- Parameters
-
string | $plugin | |
string | $type | |
string | $version | |
boolean | $mandatory | |
- Returns
- void
◆ set_dependencies()
Plugin::set_dependencies |
( |
| ) |
|
|
protected |
◆ register_asSharedObject()
Plugin::register_asSharedObject |
( |
|
$name | ) |
|
|
protected |
Register this plugin to be accessed by any other.
- Parameters
-
- Returns
- boolean success
◆ get_sharedObject()
& Plugin::get_sharedObject |
( |
|
$name | ) |
|
|
protected |
Return requested shared object.
- Parameters
-
- Returns
- Object
◆ register_asExtension()
Plugin::register_asExtension |
( |
|
$plugin | ) |
|
|
protected |
Register plugin as extension to another.
- Parameters
-
- Returns
- void
◆ get_registeredExtensions()
Plugin::get_registeredExtensions |
( |
| ) |
|
|
protected |
Return registered extensions.
- Returns
- array
◆ register_asCaMykSEventHandler()
Plugin::register_asCaMykSEventHandler |
( |
|
$event | ) |
|
|
protected |
Register plugin as handler for CaMykS event.
- Parameters
-
◆ execute_onCaMykSInitialise()
Plugin::execute_onCaMykSInitialise |
( |
| ) |
|
◆ execute_onCaMykSPageLoad()
Plugin::execute_onCaMykSPageLoad |
( |
| ) |
|
◆ execute_onCaMykSBodyOpen()
Plugin::execute_onCaMykSBodyOpen |
( |
| ) |
|
◆ execute_onCaMykSBodyClose()
Plugin::execute_onCaMykSBodyClose |
( |
| ) |
|
◆ execute_onCaMykSAdminPageLoad()
Plugin::execute_onCaMykSAdminPageLoad |
( |
| ) |
|
Execute handler on CaMykS admin page load.
- Returns
- void
◆ execute_onCaMykSAdminBodyOpen()
Plugin::execute_onCaMykSAdminBodyOpen |
( |
| ) |
|
Execute handler on admin body opening.
- Returns
- string
◆ execute_onCaMykSAdminBodyClose()
Plugin::execute_onCaMykSAdminBodyClose |
( |
| ) |
|
Execute handler on admin body closing.
- Returns
- string
◆ execute_onCaMykSTerminate()
Plugin::execute_onCaMykSTerminate |
( |
| ) |
|
◆ get_requestLink()
Plugin::get_requestLink |
( |
|
$params = array() | ) |
|
Return HTML request mode link.
- Parameters
-
- Returns
- string
◆ get_requestJSLink()
Plugin::get_requestJSLink |
( |
|
$params = array() | ) |
|
Return JavaScript request mode link.
- Parameters
-
- Returns
- string
◆ execute_request()
Plugin::execute_request |
( |
| ) |
|
Execute module in request mode.
- Returns
- void
Reimplemented in Tool_InfoBar, Content_GooglePoIMapViewer, Content_GenericHTMLNews, Content_GenericBlogsViewer, Admin_SystemNotifications, Admin_SystemLogManager, Admin_SecurityTools, Admin_GenericPetitionManager, Admin_GenericMediaLibraryManager, Admin_GenericEmailingManager, Admin_GenericDownloadManager, Admin_ContentPage, StripePayment, SiteMonitoringToolbar, SecurimageCaptcha, GenericSitemapGenerator, FileManager, ColorPicker, and CodeAuthenticator.
◆ get_varFile()
Plugin::get_varFile |
( |
|
$file | ) |
|
◆ $name
◆ $version
◆ $active
boolean Plugin::$active = false |
◆ $plugin_package
string Plugin::$plugin_package = '' |
◆ $plugin_type
string Plugin::$plugin_type |
◆ $object_type
string Plugin::$object_type |
◆ $plugin_path
string Plugin::$plugin_path |
◆ $plugin_site_path
string Plugin::$plugin_site_path |
Plugin site path (for element overwriting).
◆ $plugin_var_path
string Plugin::$plugin_var_path |
◆ $plugin_url
string Plugin::$plugin_url |
◆ $plugin_site_url
string Plugin::$plugin_site_url |
Plugin site URL (for element overwriting).
◆ $plugin_var_url
string Plugin::$plugin_var_url |
◆ $path_type
string Plugin::$path_type |
◆ $author_name
string Plugin::$author_name |
◆ $author_mail
string Plugin::$author_mail |
◆ $author_group
string Plugin::$author_group |
◆ $plugin_dependencies
string Plugin::$plugin_dependencies = array() |
The documentation for this class was generated from the following file: