Server IP : 103.233.192.212 / Your IP : 18.216.45.133 Web Server : Apache/2 System : Linux sv1.inde.co.th 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64 User : sumpatuan ( 1058) PHP Version : 5.5.38 Disable Function : symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,putenv,passthru,escapeshellarg,escapeshellcmd,pcntl_exec,proc_get_status,proc_nice,proc_terminate,pclose,ini_alter,virtual,openlog,ini_restore MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sumpatuan/public_html/backup/framework/console/ |
Upload File : |
<?php /** * CConsoleCommandEvent class file. * * @author Evgeny Blinov <e.a.blinov@gmail.com> * @link http://www.yiiframework.com/ * @copyright 2008-2013 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CConsoleCommandEvent class. * * CConsoleCommandEvent represents the event parameters needed by events raised by a console command. * * @author Evgeny Blinov <e.a.blinov@gmail.com> * @package system.console * @since 1.1.11 */ class CConsoleCommandEvent extends CEvent { /** * @var string the action name */ public $action; /** * @var boolean whether the action should be executed. * If this property is set true by the event handler, the console command action will quit after handling this event. * If false, which is the default, the normal execution cycles will continue, including performing the action and calling * {@link CConsoleCommand::afterAction}. */ public $stopCommand=false; /** * @var integer exit code of application. * This property is available in {@link CConsoleCommand::onAfterAction} event and will be set to the exit code * returned by the console command action. You can set it to change application exit code. */ public $exitCode; /** * Constructor. * @param mixed $sender sender of the event * @param string $params the parameters to be passed to the action method. * @param string $action the action name * @param integer $exitCode the application exit code */ public function __construct($sender=null,$params=null,$action=null,$exitCode=0){ parent::__construct($sender,$params); $this->action=$action; $this->exitCode=$exitCode; } }