Diff for phpMyEdit/phpMyEdit.class.php between version 1.92 and 1.93
version 1.92, 2003/08/16 01:41:26 |
version 1.93, 2003/08/16 14:01:17 |
|
|
* http://www.platon.sk/projects/phpMyEdit/ |
* http://www.platon.sk/projects/phpMyEdit/ |
*/ |
*/ |
|
|
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.91 2003/07/29 14:45:02 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.92 2003/08/16 01:41:26 nepto Exp $ */ |
|
|
/* This is a generic table editing program. The table and fields to be |
/* This is a generic table editing program. The table and fields to be |
edited are defined in the calling program. |
edited are defined in the calling program. |
|
|
*/ |
*/ |
function fqn($field, $use_qfx = false, $dont_desc = false, $dont_cols = false) /* {{{ */ |
function fqn($field, $use_qfx = false, $dont_desc = false, $dont_cols = false) /* {{{ */ |
{ |
{ |
preg_match('/^\d*$/', $field) || $field = array_search($field, $this->fds); |
is_numeric($field) || $field = array_search($field, $this->fds); |
|
// use_qfx |
|
if ($use_qfx) |
|
return 'qf'.$field; |
// on copy/change always use simple key retrieving |
// on copy/change always use simple key retrieving |
if ($this->add_operation() |
if ($this->add_operation() |
|| $this->copy_operation() |
|| $this->copy_operation() |
|
|
if (is_array($this->fdd[$this->fds[$field]]['values2'])) { |
if (is_array($this->fdd[$this->fds[$field]]['values2'])) { |
} |
} |
} |
} |
|
|
// what to do with $format XXX |
|
if ($use_qfx) |
|
$ret = 'qf'.$field; |
|
// return the value |
|
return $ret; |
return $ret; |
} /* }}} */ |
} /* }}} */ |
|
|
Platon Group <platon@platon.org> http://platon.org/
|
|