version 1.116, 2004/01/16 19:46:32 |
version 1.117, 2004/01/20 10:26:58 |
|
|
* http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
*/ |
*/ |
|
|
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.115 2004/01/12 08:59:21 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.116 2004/01/16 19:46:32 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 copy_operation() { return $this->operation == $this->labels['Copy'] && $this->copy_enabled(); } |
function copy_operation() { return $this->operation == $this->labels['Copy'] && $this->copy_enabled(); } |
function delete_operation() { return $this->operation == $this->labels['Delete'] && $this->delete_enabled(); } |
function delete_operation() { return $this->operation == $this->labels['Delete'] && $this->delete_enabled(); } |
function view_operation() { return $this->operation == $this->labels['View'] && $this->view_enabled(); } |
function view_operation() { return $this->operation == $this->labels['View'] && $this->view_enabled(); } |
function filter_operation() { return $this->fl && $this->filter_enabled(); } |
function filter_operation() { return $this->fl && $this->filter_enabled() && $this->list_operation(); } |
|
function list_operation() { /* covers also filtering page */ return ! $this->change_operation() |
|
&& ! $this->add_operation() && ! $this->copy_operation() |
|
&& ! $this->delete_operation() && ! $this->view_operation(); } |
function next_operation() { return $this->navop == $this->labels['Next']; } |
function next_operation() { return $this->navop == $this->labels['Next']; } |
function prev_operation() { return $this->navop == $this->labels['Prev']; } |
function prev_operation() { return $this->navop == $this->labels['Prev']; } |
function first_operation() { return $this->navop == $this->labels['First']; } |
function first_operation() { return $this->navop == $this->labels['First']; } |
|
|
($this->change_operation() && stristr($options, 'C')) || |
($this->change_operation() && stristr($options, 'C')) || |
($this->copy_operation() && stristr($options, 'P')) || |
($this->copy_operation() && stristr($options, 'P')) || |
($this->delete_operation() && stristr($options, 'D')) || |
($this->delete_operation() && stristr($options, 'D')) || |
((stristr($options,'L') |
($this->filter_operation() && stristr($options, 'F')) || |
|| ($this->filter_operation() && stristr($options, 'F'))) && |
($this->list_operation() && stristr($options, 'L')); |
! $this->add_operation() && |
|
! $this->view_operation() && |
|
! $this->change_operation() && |
|
! $this->copy_operation() && |
|
! $this->delete_operation()); |
|
} /* }}} */ |
} /* }}} */ |
|
|
function debug_var($name, $val) /* {{{ */ |
function debug_var($name, $val) /* {{{ */ |