Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, April 19, 2024

Diff for phpMyEdit/phpMyEdit.class.php between version 1.116 and 1.117

version 1.116, 2004/01/16 19:46:32 version 1.117, 2004/01/20 10:26:58
Line 19 
Line 19 
  * 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.
Line 206  class phpMyEdit
Line 206  class phpMyEdit
         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']; }
Line 258  class phpMyEdit
Line 261  class phpMyEdit
                         ($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) /* {{{ */

Legend:
Removed from v.1.116  
changed lines
  Added in v.1.117

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top