app/ChannelRules.php
// function to add new channel rule
function to add new channel rule
function to add new channel rule
public function addChannelRule($rule_name, $rules_endpoint, $client_channelID) {
    	$date_created = date('Y-m-d H:i:s');
    	$result = DB::insert('INSERT INTO channel_rules(rule_name, rules_endpoint, client_channelID, date_created) VALUES (?,?,?,?)', [$rule_name, $rules_endpoint, $client_channelID, $date_created]);
    	return $result;
    }
public function addChannelRule ( $ rule_name , $ rules_endpoint , $ client_channelID ) { $ date_created = date ( 'Y-m-d H:i:s' ) ; $ result = DB :: insert ( 'INSERT INTO channel_rules(rule_name, rules_endpoint, client_channelID, date_created) VALUES (?,?,?,?)' , [ $ rule_name , $ rules_endpoint , $ client_channelID , $ date_created ] ) ; return $ result ; }
function to add new channel rule
function to add new channel rule