Update call_flows.php
This commit is contained in:
@@ -28,6 +28,11 @@
|
|||||||
if (!class_exists('call_flows')) {
|
if (!class_exists('call_flows')) {
|
||||||
class call_flows {
|
class call_flows {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* declare public variables
|
||||||
|
*/
|
||||||
|
public $toggle_field;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* declare private variables
|
* declare private variables
|
||||||
*/
|
*/
|
||||||
@@ -37,7 +42,6 @@ if (!class_exists('call_flows')) {
|
|||||||
private $list_page;
|
private $list_page;
|
||||||
private $table;
|
private $table;
|
||||||
private $uuid_prefix;
|
private $uuid_prefix;
|
||||||
private $toggle_field;
|
|
||||||
private $toggle_values;
|
private $toggle_values;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -52,7 +56,6 @@ if (!class_exists('call_flows')) {
|
|||||||
$this->list_page = 'call_flows.php';
|
$this->list_page = 'call_flows.php';
|
||||||
$this->table = 'call_flows';
|
$this->table = 'call_flows';
|
||||||
$this->uuid_prefix = 'call_flow_';
|
$this->uuid_prefix = 'call_flow_';
|
||||||
$this->toggle_field = 'call_flow_status';
|
|
||||||
$this->toggle_values = ['true','false'];
|
$this->toggle_values = ['true','false'];
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -171,7 +174,6 @@ if (!class_exists('call_flows')) {
|
|||||||
*/
|
*/
|
||||||
public function toggle($records) {
|
public function toggle($records) {
|
||||||
if (permission_exists($this->permission_prefix.'edit')) {
|
if (permission_exists($this->permission_prefix.'edit')) {
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
@@ -385,4 +387,4 @@ if (!class_exists('call_flows')) {
|
|||||||
} //class
|
} //class
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user