Q_Plugin Class
Plugins manager
Item Index
Methods
- checkPermissions static
- checkTree static
- fixPermissions static
- getPasword static
- getUsersStreams static
- handleExtra static
- installApp static
- installPlugin static
- installSchema static
- prepare static
- setUsersStreams static
Methods
checkPermissions
-
$files_dir -
$options
Parameters:
-
$files_dirString -
$optionsArray
checkTree
-
$root -
$filemode -
$dirmode -
[$gid=false] -
[$ask=true]
Parameters:
-
$rootString -
$filemodeInteger -
$dirmodeInteger -
[$gid=false]String | Integer | False optional -
[$ask=true]Boolean optional
Returns:
fixPermissions
-
$file -
$mode -
[$gid=false] -
[$ask=true]
Parameters:
-
$fileString -
$modeInteger -
[$gid=false]String | Integer | False optional -
[$ask=true]Boolean optional
Returns:
getPasword
-
$conn_name -
[$stars=false]
Get password for connection
Parameters:
-
$conn_nameString -
[$stars=false]Boolean optional
Returns:
getUsersStreams
()
static
Get list of users specified streams (Streams/onInsert/Users_User) installed. To compare with config data and decide whether need to install new streams.
Returns:
array
handleExtra
-
$name -
$type -
$conn_name -
$options
Get or set extra column from [plugin_name]_Q_plugin or [app_name]_Q_app tables Also check whether this column exist, and create if not.
Parameters:
-
$nameStringThe name of application or plugin
-
$typeStringOne of 'app' or 'plugin'
-
$conn_nameStringThe name of the connection to affect
-
$optionsArrayContain data parsed from command line
-
extraArray
-
Returns:
array List of installed stream names
installApp
-
$options
Parameters:
-
$optionsArray
installPlugin
-
$plugin_name -
$options
Parameters:
-
$plugin_nameString -
$optionsArray
installSchema
-
$base_dir -
$name -
$type -
$conn_name -
$options
Install or update schema for app or plugin
Parameters:
-
$base_dirStringThe directory where application or plugin is located
-
$nameStringThe name of application or plugin
-
$typeStringOne of 'app' or 'plugin'
-
$conn_nameStringThe name of the connection to affect
-
$optionsArrayContain data parsed from command line
prepare
()
private
static
Connect Qbix platform if it's not already connected and set up constants
setUsersStreams
-
$streamsList
Set list of users specified streams (Streams/onInsert/Users_User) installed.
Parameters:
-
$streamsListArrayarray of streams list installed.
Returns:
array Result extra
Events
Q/Plugin/install
Before
Event Payload:
-
$app_dirStringthe directory where the app is installed
-
$plugin_nameStringthe name of the plugin
-
$optionsArrayoptions passed to the installPlugin method
Q/Plugin/install
After
Event Payload:
-
$app_dirStringthe directory where the app is installed
-
$plugin_nameStringthe name of the plugin
-
$optionsArrayoptions passed to the installPlugin method
Q/Plugin/installSchema
Before
Event Payload:
-
$base_dirStringThe directory where application or plugin is located
-
$nameStringThe name of application or plugin
-
$typeStringOne of 'app' or 'plugin'
-
$conn_nameStringThe name of the connection to affect
-
$optionsArrayContain data parsed from command line
-
$shardString -
$shard_dataArray -
$new_versionString -
$current_versionString -
$scriptStringThe script to execute