public $types = [];
public $conf = [];
public $attach = []; # for sqlite
- public $row_parse; # Function to call in table.rows()
+ public $row_parse_pre; # Function to call in table.rows()
# Encryption
public $encrypt = [
if (empty($this->title)) $this->title = prettyText($this->name);
# Row parser
- if (empty($this->row_parse) and $this->conf_type('row_parse')) {
- $this->row_parse = $this->conf_type('row_parse');
+ if (empty($this->row_parse_pre) and $this->conf_type('row_parse')) {
+ $this->row_parse_pre = $this->conf_type('row_parse');
}
} # < if else 'use_path'
$call = null;
if ($parser) $this->db()->table_row_decrypt($this,$row);
- if ($parser and !empty($this->db()->row_parse)) {
- $call = $this->db()->row_parse; $call($row);
+ if ($parser and !empty($this->db()->row_parse_pre)) {
+ $call = $this->db()->row_parse_pre; $call($row);
}
if ($parser and !empty($this->row_parse_pre)) {
$call = $this->row_parse_post; $call($row);
}
+ if ($parser and !empty($this->db()->row_parse_post)) {
+ $call = $this->db()->row_parse_post; $call($row);
+ }
+
# Passed param on rows()
if ($parser and !empty($opt['row_parse_post'])) {
$call = $opt['row_parse_post']; $call($row);