Skip to content

Commit

Permalink
Промяна на име на интерфейс: send2_DriverIntf => sens2_ControllerIntf
Browse files Browse the repository at this point in the history
  • Loading branch information
milengg committed Jul 11, 2018
1 parent 3a08800 commit 5bd1ee7
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 34 deletions.
2 changes: 1 addition & 1 deletion eastron/SDM120.class.php
Expand Up @@ -58,7 +58,7 @@ class eastron_SDM120 extends sens2_ioport_Abstract
/**
* Подготвя форма с настройки на контролера, като добавя полета с $form->FLD(....)
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param core_Form
*/
Expand Down
4 changes: 2 additions & 2 deletions hwgroup/HWgSTE.class.php
Expand Up @@ -35,7 +35,7 @@ class hwgroup_HWgSTE extends sens2_ProtoDriver
/**
* Подготвя форма с настройки на контролера, като добавя полета с $form->FLD(....)
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param core_Form
*/
Expand All @@ -52,7 +52,7 @@ public function prepareConfigForm($form)
/**
* Прочита стойностите от сензорните входове
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param array $inputs
* @param array $config
Expand Down
4 changes: 2 additions & 2 deletions satec/PM175.class.php
Expand Up @@ -43,7 +43,7 @@ class satec_PM175 extends sens2_ProtoDriver
/**
* Информация за входните портове на устройството
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @return array
*/
Expand All @@ -60,7 +60,7 @@ public function getInputPorts($config = null)
/**
* Подготвя форма с настройки на контролера, като добавя полета с $form->FLD(....)
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param core_Form
*/
Expand Down
Expand Up @@ -15,8 +15,11 @@
* @since v 0.1
* @title Интерфейс на драйвер на I/O контролер
*/
class sens2_DriverIntf
class sens2_ControllerIntf
{

public $oldClassName = 'sens2_DriverIntf';

/**
* Информация за входните портове на устройството
*
Expand Down
2 changes: 1 addition & 1 deletion sens2/Controllers.class.php
Expand Up @@ -113,7 +113,7 @@ class sens2_Controllers extends core_Master
public function description()
{
$this->FLD('name', 'identifier(64,utf8)', 'caption=Наименование, mandatory,notConfig');
$this->FLD('driver', 'class(interface=sens2_DriverIntf, allowEmpty, select=title)', 'caption=Драйвер,silent,mandatory,notConfig,placeholder=Тип на контролера');
$this->FLD('driver', 'class(interface=sens2_ControllerIntf, allowEmpty, select=title)', 'caption=Драйвер,silent,mandatory,notConfig,placeholder=Тип на контролера');
$this->FLD('config', 'blob(serialize, compress)', 'caption=Конфигурация,input=none,single=none,column=none');
$this->FLD('state', 'enum(active=Активен, closed=Спрян)', 'caption=Състояние,input=none');
$this->FLD('persistentState', 'blob(serialize)', 'caption=Персистентно състояние,input=none,single=none,column=none');
Expand Down
2 changes: 1 addition & 1 deletion sens2/MockupDrv.class.php
Expand Up @@ -26,7 +26,7 @@ class sens2_MockupDrv extends sens2_ProtoDriver
/**
* Интерфейси, поддържани от всички наследници
*/
public $interfaces = 'sens2_DriverIntf';
public $interfaces = 'sens2_ControllerIntf';


public function getInputPorts($config = null)
Expand Down
10 changes: 5 additions & 5 deletions sens2/ProtoDriver.class.php
Expand Up @@ -25,13 +25,13 @@ class sens2_ProtoDriver
/**
* Интерфейси, поддържани от всички наследници
*/
public $interfaces = 'sens2_DriverIntf';
public $interfaces = 'sens2_ControllerIntf';


/**
* Информация за входните портове на устройството
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @return array
*/
Expand All @@ -52,7 +52,7 @@ public function getInputPorts($config = null)
/**
* Информация за изходните портове на устройството
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @return array
*/
Expand All @@ -73,7 +73,7 @@ public function getOutputPorts()
/**
* Подготвя форма с настройки на контролера, като добавя полета с $form->FLD(....)
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param core_Form
*/
Expand All @@ -85,7 +85,7 @@ public function prepareConfigForm($form)
/**
* Проверява след субмитване формата с настройки на контролера
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param core_Form
*/
Expand Down
2 changes: 1 addition & 1 deletion sens2/ServMon.class.php
Expand Up @@ -26,7 +26,7 @@ class sens2_ServMon extends sens2_ProtoDriver
/**
* Интерфейси, поддържани от всички наследници
*/
public $interfaces = 'sens2_DriverIntf';
public $interfaces = 'sens2_ControllerIntf';


public function getInputPorts($config = null)
Expand Down
4 changes: 2 additions & 2 deletions teracom/TCW121.class.php
Expand Up @@ -49,7 +49,7 @@ class teracom_TCW121 extends sens2_ProtoDriver
/**
* Подготвя форма с настройки на контролера, като добавя полета с $form->FLD(....)
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param core_Form
*/
Expand All @@ -68,7 +68,7 @@ public function prepareConfigForm($form)
/**
* Прочита стойностите от сензорните входове
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param array $inputs
* @param array $config
Expand Down
8 changes: 4 additions & 4 deletions teracom/TCW122B.class.php
Expand Up @@ -49,7 +49,7 @@ class teracom_TCW122B extends sens2_ProtoDriver
/**
* Информация за входните портове на устройството
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @return array
*/
Expand All @@ -66,7 +66,7 @@ public function getInputPorts($config = null)
/**
* Информация за изходните портове на устройството
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @return array
*/
Expand All @@ -83,7 +83,7 @@ public function getOutputPorts()
/**
* Подготвя форма с настройки на контролера, като добавя полета с $form->FLD(....)
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param core_Form
*/
Expand All @@ -101,7 +101,7 @@ public function prepareConfigForm($form)
/**
* Прочита стойностите от сензорните входове
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param array $inputs
* @param array $config
Expand Down
8 changes: 4 additions & 4 deletions teracom/TCW122BCM.class.php
Expand Up @@ -49,7 +49,7 @@ class teracom_TCW122BCM extends sens2_ProtoDriver
/**
* Информация за входните портове на устройството
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @return array
*/
Expand All @@ -66,7 +66,7 @@ public function getInputPorts($config = null)
/**
* Информация за изходните портове на устройството
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @return array
*/
Expand All @@ -83,7 +83,7 @@ public function getOutputPorts()
/**
* Подготвя форма с настройки на контролера, като добавя полета с $form->FLD(....)
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param core_Form
*/
Expand All @@ -99,7 +99,7 @@ public function prepareConfigForm($form)
/**
* Прочита стойностите от сензорните входове
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param array $inputs
* @param array $config
Expand Down
8 changes: 4 additions & 4 deletions teracom/TCW181BCM.class.php
Expand Up @@ -47,7 +47,7 @@ class teracom_TCW181BCM extends sens2_ProtoDriver
/**
* Информация за входните портове на устройството
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @return array
*/
Expand All @@ -64,7 +64,7 @@ public function getInputPorts($config = null)
/**
* Информация за изходните портове на устройството
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @return array
*/
Expand All @@ -81,7 +81,7 @@ public function getOutputPorts()
/**
* Подготвя форма с настройки на контролера, като добавя полета с $form->FLD(....)
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param core_Form
*/
Expand All @@ -97,7 +97,7 @@ public function prepareConfigForm($form)
/**
* Прочита стойностите от сензорните входове
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param array $inputs
* @param array $config
Expand Down
2 changes: 1 addition & 1 deletion tsm/TSM.class.php
Expand Up @@ -57,7 +57,7 @@ public function prepareConfigForm($form)
/**
* Прочита стойностите от сензорните входове
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param array $inputs
* @param array $config
Expand Down
10 changes: 5 additions & 5 deletions unipi/Neuron.class.php
Expand Up @@ -22,7 +22,7 @@ class unipi_Neuron extends sens2_ProtoDriver
/**
* Интерфейси, поддържани от всички наследници
*/
public $interfaces = 'sens2_DriverIntf';
public $interfaces = 'sens2_ControllerIntf';


/**
Expand Down Expand Up @@ -68,7 +68,7 @@ class unipi_Neuron extends sens2_ProtoDriver
/**
* Информация за входните портове на устройството
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @return array
*/
Expand All @@ -83,7 +83,7 @@ public function getInputPorts($config = null)
/**
* Информация за изходните портове на устройството
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @return array
*/
Expand All @@ -102,7 +102,7 @@ public function getOutputPorts($config = null)
/**
* Подготвя форма с настройки на контролера, като добавя полета с $form->FLD(....)
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param core_Form
*/
Expand All @@ -122,7 +122,7 @@ public function prepareConfigForm($form)
/**
* Проверява след субмитване формата с настройки на контролера
*
* @see sens2_DriverIntf
* @see sens2_ControllerIntf
*
* @param core_Form
*/
Expand Down

0 comments on commit 5bd1ee7

Please sign in to comment.