<?php
namespace ext_recurring_payments\console\components\behaviors;
/**
* MwExtBoilerplateAppBehavior TODO @classname change it with extensions name
*
* @package mw-ext-boilerplate extension TODO @package name
* @author Jim Well John Balatero <jim@optidig.biz> TODO @author
* @link http://www.optidig.com/
* @since 1.0
*
* @property owner is the instance of extension obj
*
* To get current extensions's version, you can use:
* $this->owner->version
*/
class AppBehavior extends \CBehavior {
/**
* Called when app is console
*/
public function run() {
// checking of extension update
switch ($this->owner->getOption('check_update_every_min', 1)) {
case 1:
echo "aw";
// Yii::app()->hooks->addAction('console_command_feedback_loop_handler_after_process', array($this, 'check_for_extension_update'));
break;
case 10:
echo "ew";
// Yii::app()->hooks->addAction('console_command_bounce_handler_after_process', array($this, 'check_for_extension_update'));
break;
case 3;
echo "awaw";
// Yii::app()->hooks->addAction('console_command_process_delivery_and_bounce_log_after_process', array($this, 'check_for_extension_update'));
break;
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.