Correct Field and add new event classes
add 2 new event classes for SCCPShowDevice correct translator in ShowSCCPDevice_Response
This commit is contained in:
parent
6e2101d4fd
commit
2b07718c30
|
@ -35,7 +35,7 @@ class UnknownEvent extends Event
|
||||||
{
|
{
|
||||||
public function __construct($rawContent = '')
|
public function __construct($rawContent = '')
|
||||||
{
|
{
|
||||||
print_r($rawContent);
|
// print_r($rawContent);
|
||||||
// die();
|
// die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -165,7 +165,14 @@ class SCCPShowDevicesComplete_Event extends Event
|
||||||
class SCCPDeviceButtonEntry_Event extends Event
|
class SCCPDeviceButtonEntry_Event extends Event
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
class SCCPDeviceFeatureEntry_Event extends Event
|
||||||
|
{
|
||||||
|
// Returned by SCCPShowDevice
|
||||||
|
}
|
||||||
|
class SCCPVariableEntry_Event extends Event
|
||||||
|
{
|
||||||
|
// Returned by SCCPShowDevice
|
||||||
|
}
|
||||||
class SCCPDeviceLineEntry_Event extends Event
|
class SCCPDeviceLineEntry_Event extends Event
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -434,10 +434,10 @@ class SCCPShowDevice_Response extends SCCPGeneric_Response
|
||||||
}
|
}
|
||||||
public function getResult()
|
public function getResult()
|
||||||
{
|
{
|
||||||
|
// This object has a list of events _events, and a list of tables _tables.
|
||||||
$result = array();
|
$result = array();
|
||||||
|
|
||||||
foreach ($this->_events as $trow) {
|
foreach ($this->_events as $trow) {
|
||||||
dbug('keys are',$trow->getKeys());
|
|
||||||
$result = array_merge($result, $trow->getKeys());
|
$result = array_merge($result, $trow->getKeys());
|
||||||
}
|
}
|
||||||
$result['Buttons'] = $this->ConvertTableData(
|
$result['Buttons'] = $this->ConvertTableData(
|
||||||
|
@ -448,7 +448,7 @@ class SCCPShowDevice_Response extends SCCPGeneric_Response
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$result['SpeeddialButtons'] = $this->ConvertTableData(
|
$result['SpeeddialButtons'] = $this->ConvertTableData(
|
||||||
'Buttons',
|
'SpeeddialButtons',
|
||||||
array('id'),
|
array('id'),
|
||||||
array('id'=>'id','channelobjecttype'=>'channelobjecttype','name'=>'name','number'=>'number','hint'=>'hint')
|
array('id'=>'id','channelobjecttype'=>'channelobjecttype','name'=>'name','number'=>'number','hint'=>'hint')
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue