Yii2 framework backup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.1 KiB

<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yiiunit\framework\console;
use yii\console\Controller;
/**
* @author Misbahul D Munir <misbahuldmunir@gmail.com>
* @since 2.0
*/
class FakeController extends Controller
{
9 years ago
public $test;
public $testArray = [];
public function options($actionID)
{
return array_merge(parent::options($actionID), [
'test',
'testArray'
]);
}
public function shortCuts()
{
return ['t' => 'test', 'ta' => 'testArray'];
}
public function actionAksi1($fromParam, $other = 'default')
{
return[$fromParam, $other];
}
public function actionAksi2(array $values, $value)
{
return [$values, $value];
}
public function actionAksi3($available, $missing)
{
9 years ago
}
9 years ago
public function actionAksi4()
{
return $this->test;
}
public function actionAksi5()
{
return $this->testArray;
}
}