for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Hosting Plugin for HiPanel
*
* @link https://github.com/hiqdev/hipanel-module-hosting
* @package hipanel-module-hosting
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2019, HiQDev (http://hiqdev.com/)
*/
namespace hipanel\modules\hosting\widgets\combo;
use hiqdev\combo\Combo;
use yii\helpers\ArrayHelper;
* Class Account.
class AccountPathCombo extends Combo
{
/** {@inheritdoc} */
public $type = 'hosting/accountPath';
public $name = 'path';
public $url = '/hosting/account/get-directories-list';
public $_return = ['id', 'login', 'server', 'path'];
public function getFilter()
return ArrayHelper::merge(parent::getFilter(), [
'account' => 'hosting/account',
'server' => 'server/server',
]);
}
public function getPluginOptions($options = [])
return parent::getPluginOptions([
'clearWhen' => ['hosting/account'],
'activeWhen' => ['hosting/account'],