-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add option to select specific servers on proxy
- Loading branch information
magnussolution
committed
Apr 23, 2023
1 parent
e79a7a3
commit 223c88c
Showing
9 changed files
with
194 additions
and
22 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Class to define tag of "phoneBook" | ||
* | ||
* Adilson L. Magnus <[email protected]> | ||
* 15/04/2013 | ||
*/ | ||
Ext.define('MBilling.view.servers.Tag', { | ||
extend: 'Ext.form.field.Tag', | ||
alias: 'widget.serverstag', | ||
name: 'id_server', | ||
fieldLabel: t('Servers'), | ||
displayField: 'name', | ||
valueField: 'id', | ||
initComponent: function() { | ||
var me = this; | ||
me.store = Ext.create('MBilling.store.Servers', { | ||
proxy: { | ||
type: 'uxproxy', | ||
module: 'servers', | ||
limitParam: undefined | ||
} | ||
}); | ||
me.callParent(arguments); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
/** | ||
* Modelo para a tabela "CampaignPhonebook". | ||
* ======================================= | ||
* ################################### | ||
* MagnusBilling | ||
* | ||
* @package MagnusBilling | ||
* @author Adilson Leffa Magnus. | ||
* @copyright Copyright (C) 2005 - 2021 MagnusSolution. All rights reserved. | ||
* ################################### | ||
* | ||
* This software is released under the terms of the GNU Lesser General Public License v3 | ||
* A copy of which is available from http://www.gnu.org/copyleft/lesser.html | ||
* | ||
* Please submit bug reports, patches, etc to https://github.com/magnusbilling/mbilling/issues | ||
* ======================================= | ||
* Magnusbilling.com <[email protected]> | ||
* 29/10/2012 | ||
*/ | ||
|
||
class ServersServers extends Model | ||
{ | ||
protected $_module = 'serversservers'; | ||
/** | ||
* Retorna a classe estatica da model. | ||
* @return SubModule classe estatica da model. | ||
*/ | ||
public static function model($className = __CLASS__) | ||
{ | ||
return parent::model($className); | ||
} | ||
|
||
/** | ||
* @return nome da tabela. | ||
*/ | ||
public function tableName() | ||
{ | ||
return 'pkg_servers_servers'; | ||
} | ||
|
||
/** | ||
* @return nome da(s) chave(s) primaria(s). | ||
*/ | ||
public function primaryKey() | ||
{ | ||
return array('id_proxy', 'id_server'); | ||
} | ||
|
||
/** | ||
* @return array validacao dos campos da model. | ||
*/ | ||
public function rules() | ||
{ | ||
$rules = array( | ||
array('id_proxy, id_server', 'required'), | ||
array('id_proxy, id_server', 'numerical', 'integerOnly' => true), | ||
); | ||
return $this->getExtraField($rules); | ||
} | ||
|
||
public function beforeSave() | ||
{ | ||
return parent::beforeSave(); | ||
} | ||
|
||
public function afterSave() | ||
{ | ||
return parent::afterSave(); | ||
} | ||
} |