# CORS Cross scheme allowed
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
+ header('Access-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range');
+ header('Access-Control-Expose-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range');
}
$DBQ['pub'] = [
'row_parse_post' => !$html ? null : function(&$r,&$t) { Maps::row($r); },
+# NB 16.01.18 'row_parse_post' => function(&$r,&$t,$opt) {
+# NB 16.01.18 #bye($opt);
+# NB 16.01.18 Maps::row($r);
+# NB 16.01.18 },
];
?>
// Pre
//
if ($parser and !empty($this->db()->row_parse_pre)) {
- $call = $this->db()->row_parse_pre; $call($row,$this);
+ $call = $this->db()->row_parse_pre; $call($row,$this,$opt);
}
if ($parser and !empty($this->row_parse_pre)) {
- $call = $this->row_parse_pre; $call($row,$this);
+ $call = $this->row_parse_pre; $call($row,$this,$opt);
}
# Passed param on rows()
if ($parser and !empty($opt['row_parse_pre'])) {
- $call = $opt['row_parse_pre']; $call($row,$this);
+ $call = $opt['row_parse_pre']; $call($row,$this,$opt);
}
//
// Post
//
if ($parser and !empty($this->row_parse_post)) {
- $fct = $this->row_parse_post;
- $fct($row,$this);
+ $call = $this->row_parse_post; $call($row,$this,$opt);
}
if ($parser and !empty($this->db()->row_parse_post)) {
- $fct = $this->db()->row_parse_post;
- $fct($row,$this);
+ $call = $this->db()->row_parse_post; $call($row,$this,$opt);
}
# Passed param on rows()
if ($parser and !empty($opt['row_parse_post'])) {
- $call = $opt['row_parse_post']; $call($row,$this);
+ $call = $opt['row_parse_post']; $call($row,$this,$opt);
}
return $call;