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_dir
String -
$options
Array
checkTree
-
$root
-
$filemode
-
$dirmode
-
[$gid=false]
-
[$ask=true]
Parameters:
-
$root
String -
$filemode
Integer -
$dirmode
Integer -
[$gid=false]
String | Integer | False optional -
[$ask=true]
Boolean optional
Returns:
fixPermissions
-
$file
-
$mode
-
[$gid=false]
-
[$ask=true]
Parameters:
-
$file
String -
$mode
Integer -
[$gid=false]
String | Integer | False optional -
[$ask=true]
Boolean optional
Returns:
getPasword
-
$conn_name
-
[$stars=false]
Get password for connection
Parameters:
-
$conn_name
String -
[$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:
-
$name
StringThe name of application or plugin
-
$type
StringOne of 'app' or 'plugin'
-
$conn_name
StringThe name of the connection to affect
-
$options
ArrayContain data parsed from command line
-
extra
Array
-
Returns:
array List of installed stream names
installApp
-
$options
Parameters:
-
$options
Array
installPlugin
-
$plugin_name
-
$options
Parameters:
-
$plugin_name
String -
$options
Array
installSchema
-
$base_dir
-
$name
-
$type
-
$conn_name
-
$options
Install or update schema for app or plugin
Parameters:
-
$base_dir
StringThe directory where application or plugin is located
-
$name
StringThe name of application or plugin
-
$type
StringOne of 'app' or 'plugin'
-
$conn_name
StringThe name of the connection to affect
-
$options
ArrayContain 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:
-
$streamsList
Arrayarray of streams list installed.
Returns:
array Result extra
Events
Q/Plugin/install
Before
Event Payload:
-
$app_dir
Stringthe directory where the app is installed
-
$plugin_name
Stringthe name of the plugin
-
$options
Arrayoptions passed to the installPlugin method
Q/Plugin/install
After
Event Payload:
-
$app_dir
Stringthe directory where the app is installed
-
$plugin_name
Stringthe name of the plugin
-
$options
Arrayoptions passed to the installPlugin method
Q/Plugin/installSchema
Before
Event Payload:
-
$base_dir
StringThe directory where application or plugin is located
-
$name
StringThe name of application or plugin
-
$type
StringOne of 'app' or 'plugin'
-
$conn_name
StringThe name of the connection to affect
-
$options
ArrayContain data parsed from command line
-
$shard
String -
$shard_data
Array -
$new_version
String -
$current_version
String -
$script
StringThe script to execute