PluginCommand

Extends\CConsoleCommand

package

Default

Methods

Call for cron action

actionCron(integer $interval = null): void

Arguments

$interval

integer

Minutes for interval

Call directly an event by command (it's default)

actionIndex(string $target,mixed $function = null,mixed $option = null): void

Arguments

$target

string

Target of action, plugin name for example

$function

mixed

Extra parameters for plugin

$option

mixed

Extra parameters for plugin

register some needed or a lot used part

init()

Properties

connection

connection :

Type(s)