|
@@ 483-493 (lines=11) @@
|
| 480 |
|
* @param array $data properties |
| 481 |
|
* @return array channelInfo |
| 482 |
|
*/ |
| 483 |
|
function channelCreate($data) { |
| 484 |
|
if(!$this->runtime['selected']) { return $this->checkSelected(); } |
| 485 |
|
|
| 486 |
|
$propertiesString = ''; |
| 487 |
|
|
| 488 |
|
foreach($data as $key => $value) { |
| 489 |
|
$propertiesString .= ' '.$key.'='.$this->escapeText($value); |
| 490 |
|
} |
| 491 |
|
|
| 492 |
|
return $this->getData('array', 'channelcreate '.$propertiesString); |
| 493 |
|
} |
| 494 |
|
|
| 495 |
|
/** |
| 496 |
|
* channelDelete |
|
@@ 561-571 (lines=11) @@
|
| 558 |
|
* @param array $data edited settings |
| 559 |
|
* @return boolean success |
| 560 |
|
*/ |
| 561 |
|
function channelEdit($cid, $data) { |
| 562 |
|
if(!$this->runtime['selected']) { return $this->checkSelected(); } |
| 563 |
|
|
| 564 |
|
$settingsString = ''; |
| 565 |
|
|
| 566 |
|
foreach($data as $key => $value) { |
| 567 |
|
$settingsString .= ' '.$key.'='.$this->escapeText($value); |
| 568 |
|
} |
| 569 |
|
|
| 570 |
|
return $this->getData('boolean', 'channeledit cid='.$cid.$settingsString); |
| 571 |
|
} |
| 572 |
|
|
| 573 |
|
/** |
| 574 |
|
* channelFind |
|
@@ 1173-1183 (lines=11) @@
|
| 1170 |
|
* @param array $data clientProperties |
| 1171 |
|
* @return boolean success |
| 1172 |
|
*/ |
| 1173 |
|
function clientDbEdit($cldbid, $data) { |
| 1174 |
|
if(!$this->runtime['selected']) { return $this->checkSelected(); } |
| 1175 |
|
|
| 1176 |
|
$settingsString = ''; |
| 1177 |
|
|
| 1178 |
|
foreach($data as $key => $value) { |
| 1179 |
|
$settingsString .= ' '.$key.'='.$this->escapeText($value); |
| 1180 |
|
} |
| 1181 |
|
|
| 1182 |
|
return $this->getData('boolean', 'clientdbedit cldbid='.$cldbid.$settingsString); |
| 1183 |
|
} |
| 1184 |
|
|
| 1185 |
|
/** |
| 1186 |
|
* clientDbFind |
|
@@ 1330-1340 (lines=11) @@
|
| 1327 |
|
* @param array $data clientProperties |
| 1328 |
|
* @return boolean success |
| 1329 |
|
*/ |
| 1330 |
|
function clientEdit($clid, $data) { |
| 1331 |
|
if(!$this->runtime['selected']) { return $this->checkSelected(); } |
| 1332 |
|
|
| 1333 |
|
$settingsString = ''; |
| 1334 |
|
|
| 1335 |
|
foreach($data as $key => $value) { |
| 1336 |
|
$settingsString .= ' '.$key.'='.$this->escapeText($value); |
| 1337 |
|
} |
| 1338 |
|
|
| 1339 |
|
return $this->getData('boolean', 'clientedit clid='.$clid.$settingsString); |
| 1340 |
|
} |
| 1341 |
|
|
| 1342 |
|
/** |
| 1343 |
|
* clientFind |
|
@@ 2955-2965 (lines=11) @@
|
| 2952 |
|
* @param array $data serverSettings |
| 2953 |
|
* @return boolean success |
| 2954 |
|
*/ |
| 2955 |
|
function serverEdit($data) { |
| 2956 |
|
if(!$this->runtime['selected']) { return $this->checkSelected(); } |
| 2957 |
|
|
| 2958 |
|
$settingsString = ''; |
| 2959 |
|
|
| 2960 |
|
foreach($data as $key => $value) { |
| 2961 |
|
$settingsString .= ' '.$key.'='.$this->escapeText($value); |
| 2962 |
|
} |
| 2963 |
|
|
| 2964 |
|
return $this->getData('boolean', 'serveredit'.$settingsString); |
| 2965 |
|
} |
| 2966 |
|
|
| 2967 |
|
/** |
| 2968 |
|
* serverGroupAdd |