public function logChange($args){
		#echo __METHOD__.__LINE__.'$this->AUDIT_CODE['.$this->AUDIT_CODE.'] args<pre>['.var_export($args, true).']</pre>'.'<br>'.PHP_EOL; 
		if(!isset($args["code"]) || !is_numeric($args["code"])){
			if(isset($this->AUDIT_CODE)){
				$args["code"] = $this->AUDIT_CODE;
			}else{
				return false;
			}
		}
		
		if(!isset($args["data"]) || '[]' == $args["data"]){
			return false;
		}
		
		
		$query = '
		INSERT INTO client_log (
			client_user_fk, 
			client_fingerprint_fk, 
			log_code, 
			log_message, 
			log_data
		)
		VALUES (
			'.$_SESSION['user_id'].',
			'.$args["client_fingerprint_pk"].', 
			'.$args["code"].', 
			"'.$args["log_message"].'",
			\''.$args["data"].'\'
		)';
		
		#echo __METHOD__.'@'.__LINE__.'  query<pre>['.var_export($query, true).']</pre> '.'<br>'.PHP_EOL; 
		#echo __METHOD__.'@'.__LINE__.'  $this->logConfig<pre>['.var_export($this->logConfig, true).']</pre> '.'<br>'.PHP_EOL; 
		$result = $GLOBALS["DATA_API"]->create($this->logConfig['DSN'], $query, $extArgs=array('returnArray' => true));
		#echo __METHOD__.'@'.__LINE__.'  result<pre>['.var_export($result, true).']</pre> '.'<br>'.PHP_EOL; 
		if(isset($result["INSERT_ID"])){
			return true;
		}
		return false;
	}
public function logChange($args){
		#echo __METHOD__.__LINE__.'$this->AUDIT_CODE['.$this->AUDIT_CODE.'] args<pre>['.var_export($args, true).']</pre>'.'<br>'.PHP_EOL; 
		if(!isset($args["code"]) || !is_numeric($args["code"])){
			if(isset($this->AUDIT_CODE)){
				$args["code"] = $this->AUDIT_CODE;
			}else{
				return false;
			}
		}
		
		if(!isset($args["data"]) || '[]' == $args["data"]){
			return false;
		}
		
		
		$query = '
		INSERT INTO client_log (
			client_user_fk, 
			client_fingerprint_fk, 
			log_code, 
			log_message, 
			log_data
		)
		VALUES (
			'.$_SESSION['user_id'].',
			'.$args["client_fingerprint_pk"].', 
			'.$args["code"].', 
			"'.$args["log_message"].'",
			\''.$args["data"].'\'
		)';
		
		#echo __METHOD__.'@'.__LINE__.'  query<pre>['.var_export($query, true).']</pre> '.'<br>'.PHP_EOL; 
		#echo __METHOD__.'@'.__LINE__.'  $this->logConfig<pre>['.var_export($this->logConfig, true).']</pre> '.'<br>'.PHP_EOL; 
		$result = $GLOBALS["DATA_API"]->create($this->logConfig['DSN'], $query, $extArgs=array('returnArray' => true));
		#echo __METHOD__.'@'.__LINE__.'  result<pre>['.var_export($result, true).']</pre> '.'<br>'.PHP_EOL; 
		if(isset($result["INSERT_ID"])){
			return true;
		}
		return false;
	}
public function logChange ( $ args ) { #echo __METHOD__.__LINE__.'$this->AUDIT_CODE['.$this->AUDIT_CODE.'] args<pre>['.var_export($args, true).']</pre>'.'<br>'.PHP_EOL;  if ( ! isset ( $ args [ "code" ] ) || ! is_numeric ( $ args [ "code" ] ) ) { if ( isset ( $ this -> AUDIT_CODE ) ) { $ args [ "code" ] = $ this -> AUDIT_CODE ; } else { return false ; } } if ( ! isset ( $ args [ "data" ] ) || '[]' == $ args [ "data" ] ) { return false ; } $ query = '
		INSERT INTO client_log (
			client_user_fk, 
			client_fingerprint_fk, 
			log_code, 
			log_message, 
			log_data
		)
		VALUES (
			' . $ _SESSION [ 'user_id' ] . ',
			' . $ args [ "client_fingerprint_pk" ] . ', 
			' . $ args [ "code" ] . ', 
			"' . $ args [ "log_message" ] . '",
			\'' . $ args [ "data" ] . '\'
		)' ; #echo __METHOD__.'@'.__LINE__.'  query<pre>['.var_export($query, true).']</pre> '.'<br>'.PHP_EOL;  #echo __METHOD__.'@'.__LINE__.'  $this->logConfig<pre>['.var_export($this->logConfig, true).']</pre> '.'<br>'.PHP_EOL;  $ result = $ GLOBALS [ "DATA_API" ] -> create ( $ this -> logConfig [ 'DSN' ] , $ query , $ extArgs = array ( 'returnArray' => true ) ) ; #echo __METHOD__.'@'.__LINE__.'  result<pre>['.var_export($result, true).']</pre> '.'<br>'.PHP_EOL;  if ( isset ( $ result [ "INSERT_ID" ] ) ) { return true ; } return false ; }
Log an entity change

@param	array 	args
@return bool
Log an entity change