@@ 482-492 (lines=11) @@ | ||
479 | * @param array $data properties |
|
480 | * @return array channelInfo |
|
481 | */ |
|
482 | function channelCreate($data) { |
|
483 | if(!$this->runtime['selected']) { return $this->checkSelected(); } |
|
484 | ||
485 | $propertiesString = ''; |
|
486 | ||
487 | foreach($data as $key => $value) { |
|
488 | $propertiesString .= ' '.$key.'='.$this->escapeText($value); |
|
489 | } |
|
490 | ||
491 | return $this->getData('array', 'channelcreate '.$propertiesString); |
|
492 | } |
|
493 | ||
494 | /** |
|
495 | * channelDelete |
|
@@ 560-570 (lines=11) @@ | ||
557 | * @param array $data edited settings |
|
558 | * @return boolean success |
|
559 | */ |
|
560 | function channelEdit($cid, $data) { |
|
561 | if(!$this->runtime['selected']) { return $this->checkSelected(); } |
|
562 | ||
563 | $settingsString = ''; |
|
564 | ||
565 | foreach($data as $key => $value) { |
|
566 | $settingsString .= ' '.$key.'='.$this->escapeText($value); |
|
567 | } |
|
568 | ||
569 | return $this->getData('boolean', 'channeledit cid='.$cid.$settingsString); |
|
570 | } |
|
571 | ||
572 | /** |
|
573 | * channelFind |
|
@@ 1161-1171 (lines=11) @@ | ||
1158 | * @param array $data clientProperties |
|
1159 | * @return boolean success |
|
1160 | */ |
|
1161 | function clientDbEdit($cldbid, $data) { |
|
1162 | if(!$this->runtime['selected']) { return $this->checkSelected(); } |
|
1163 | ||
1164 | $settingsString = ''; |
|
1165 | ||
1166 | foreach($data as $key => $value) { |
|
1167 | $settingsString .= ' '.$key.'='.$this->escapeText($value); |
|
1168 | } |
|
1169 | ||
1170 | return $this->getData('boolean', 'clientdbedit cldbid='.$cldbid.$settingsString); |
|
1171 | } |
|
1172 | ||
1173 | /** |
|
1174 | * clientDbFind |
|
@@ 1318-1328 (lines=11) @@ | ||
1315 | * @param array $data clientProperties |
|
1316 | * @return boolean success |
|
1317 | */ |
|
1318 | function clientEdit($clid, $data) { |
|
1319 | if(!$this->runtime['selected']) { return $this->checkSelected(); } |
|
1320 | ||
1321 | $settingsString = ''; |
|
1322 | ||
1323 | foreach($data as $key => $value) { |
|
1324 | $settingsString .= ' '.$key.'='.$this->escapeText($value); |
|
1325 | } |
|
1326 | ||
1327 | return $this->getData('boolean', 'clientedit clid='.$clid.$settingsString); |
|
1328 | } |
|
1329 | ||
1330 | /** |
|
1331 | * clientFind |
|
@@ 2652-2662 (lines=11) @@ | ||
2649 | * @param array $data serverSettings |
|
2650 | * @return boolean success |
|
2651 | */ |
|
2652 | function serverEdit($data) { |
|
2653 | if(!$this->runtime['selected']) { return $this->checkSelected(); } |
|
2654 | ||
2655 | $settingsString = ''; |
|
2656 | ||
2657 | foreach($data as $key => $value) { |
|
2658 | $settingsString .= ' '.$key.'='.$this->escapeText($value); |
|
2659 | } |
|
2660 | ||
2661 | return $this->getData('boolean', 'serveredit'.$settingsString); |
|
2662 | } |
|
2663 | ||
2664 | /** |
|
2665 | * serverGroupAdd |