version 1.156, 2004/12/08 16:21:12 |
version 1.157, 2004/12/27 03:10:27 |
|
|
* http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
*/ |
*/ |
|
|
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.155 2004/12/07 23:48:16 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.156 2004/12/08 16:21:12 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. |
Line 1485 function '.$this->js['prefix'].'filter_h |
|
Line 1485 function '.$this->js['prefix'].'filter_h |
|
return $ret; |
return $ret; |
} /* }}} */ |
} /* }}} */ |
|
|
|
function get_default_cgi_prefix($type) /* {{{ */ |
|
{ |
|
switch ($type) { |
|
case 'operation': return 'PME_op_'; |
|
case 'sys': return 'PME_sys_'; |
|
case 'data': return 'PME_data_'; |
|
} |
|
return ''; |
|
} /* }}} */ |
|
|
function get_sys_cgi_var($name, $default_value = null) /* {{{ */ |
function get_sys_cgi_var($name, $default_value = null) /* {{{ */ |
{ |
{ |
return $this->get_cgi_var($this->cgi['prefix']['sys'].$name, $default_value); |
if (isset($this)) { |
|
return $this->get_cgi_var($this->cgi['prefix']['sys'].$name, $default_value); |
|
} |
|
return phpMyEdit::get_cgi_var(phpMyEdit::get_default_cgi_prefix('sys').$name, $default_value); |
} /* }}} */ |
} /* }}} */ |
|
|
function get_data_cgi_var($name, $default_value = null) /* {{{ */ |
function get_data_cgi_var($name, $default_value = null) /* {{{ */ |
{ |
{ |
return $this->get_cgi_var($this->cgi['prefix']['data'].$name, $default_value); |
if (isset($this)) { |
|
return $this->get_cgi_var($this->cgi['prefix']['data'].$name, $default_value); |
|
} |
|
return phpMyEdit::get_cgi_var(phpMyEdit::get_default_cgi_prefix('data').$name, $default_value); |
} /* }}} */ |
} /* }}} */ |
|
|
function get_cgi_var($name, $default_value = null) /* {{{ */ |
function get_cgi_var($name, $default_value = null) /* {{{ */ |
Line 3045 function '.$this->js['prefix'].'filter_h |
|
Line 3061 function '.$this->js['prefix'].'filter_h |
|
} |
} |
} |
} |
} |
} |
!isset($this->cgi['prefix']['operation']) && $this->cgi['prefix']['operation'] = 'PME_op_'; |
foreach (array('operation', 'sys', 'data') as $type) { |
!isset($this->cgi['prefix']['sys']) && $this->cgi['prefix']['sys'] = 'PME_sys_'; |
if (! isset($this->cgi['prefix'][$type])) { |
!isset($this->cgi['prefix']['data']) && $this->cgi['prefix']['data'] = 'PME_data_'; |
$this->cgi['prefix'][$type] = $this->get_default_cgi_prefix($type); |
|
} |
|
} |
// Sorting variables |
// Sorting variables |
$this->sfn = $this->get_sys_cgi_var('sfn'); |
$this->sfn = $this->get_sys_cgi_var('sfn'); |
isset($this->sfn) || $this->sfn = array(); |
isset($this->sfn) || $this->sfn = array(); |