/[cvs]/nfo/php/libs/org.netfrag.glib/DataSource/Generic.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.glib/DataSource/Generic.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by joko, Fri Mar 28 06:45:26 2003 UTC revision 1.13 by jonen, Fri Apr 4 02:37:14 2003 UTC
# Line 15  Line 15 
15   * $Id$   * $Id$
16   *   *
17   * $Log$   * $Log$
18     * Revision 1.13  2003/04/04 02:37:14  jonen
19     * _query[action] == write
20     *
21     * Revision 1.12  2003/03/29 08:00:48  joko
22     * modified ErrorBoxing
23     *
24   * Revision 1.11  2003/03/28 06:45:26  joko   * Revision 1.11  2003/03/28 06:45:26  joko
25   * VERBOSE mode   * VERBOSE mode
26   *   *
# Line 678  class DataSource_Generic extends DesignP Line 684  class DataSource_Generic extends DesignP
684          switch ($this->_query[metatype]) {          switch ($this->_query[metatype]) {
685            case 'data':            case 'data':
686              $command = 'queryData';              $command = 'queryData';
687                
688              //$command = 'getObjects';   // FIXME!!!              //$command = 'getObjects';   // FIXME!!!
689              //$this->_locator->set_option('metadata.command', $command);              //$this->_locator->set_option('metadata.command', $command);
690  /*  /*
# Line 711  class DataSource_Generic extends DesignP Line 718  class DataSource_Generic extends DesignP
718                  $query_args[classname] = $this->_query[classname];                  $query_args[classname] = $this->_query[classname];
719                  break;                                break;              
720              }              }
721                if($this->_query[action] == 'write') {
722                 $query_args[action] = $this->_query[action];
723                 $query_args[data] = $this->_query[data];
724                }
725              $args = array(              $args = array(
726                            'data_type' => $this->_query[abstract_type],                            'data_type' => $this->_query[abstract_type],
727                            'query_args' => $query_args                            'query_args' => $query_args
# Line 788  class DataSource_Generic extends DesignP Line 799  class DataSource_Generic extends DesignP
799    
800        // trace        // trace
801          //if (constants::get('VERBOSE') && $this->_debug[notice]) {          //if (constants::get('VERBOSE') && $this->_debug[notice]) {
802          if (constants::get('VERBOSE')) {          if (constants::get('VERBOSE') or constants::get('ERRORS_ONLY')) {
803            //print "_result = " . Dumper($this->_result);            //print "_result = " . Dumper($this->_result);
804            //print "<div><b><font color=\"darkgreen\">Debug:</font></b> DataSource::Generic->_result_count = <b>" . $this->_result_count . "</b></div>";            //print "<div><b><font color=\"darkgreen\">Debug:</font></b> DataSource::Generic->_result_count = <b>" . $this->_result_count . "</b></div>";
805            $this->draw_status_box();            $this->draw_status_box();
# Line 804  class DataSource_Generic extends DesignP Line 815  class DataSource_Generic extends DesignP
815            
816      $boxcount++;      $boxcount++;
817    
818        $box = container();
819    
820      // box client code (javascript)      // box client code (javascript)
821      $code_js = "      $code_js = "
822      <script language=\"javascript\">      <script language=\"javascript\">
# Line 820  class DataSource_Generic extends DesignP Line 833  class DataSource_Generic extends DesignP
833      ";      ";
834      //$script = html_script($code_js);      //$script = html_script($code_js);
835      //print $script->render();      //print $script->render();
836      print $code_js;      $box->add( $code_js );
837            
838      // box style      // box style
839      $style = container(      $style = container(
840        html_style("text/css", '.boxlabel_darkgreen { color: darkgreen; font-weight:bold; }'),        html_style("text/css", '.boxlabel_darkgreen { color: darkgreen; font-weight:bold; }'),
841        html_style("text/css", '.box_dsg { background: #20ab39; color: white; border: 2px black groove; width:640px; padding:10px; margin:40px; }')        html_style("text/css", '.box_dsg { background: #20ab39; color: white; border: 2px black groove; width:640px; padding:10px; margin:40px; }')
842      );      );
843      print $style->render();      $box->add( $style );
844            
845      // box content      // box content
846      $statusbox = html_div('box_dsg');      $statusbox = html_div('box_dsg');
# Line 845  class DataSource_Generic extends DesignP Line 858  class DataSource_Generic extends DesignP
858        $statusbox->add( html_span('boxlabel_darkgreen', "Arguments:"), Dumper($call[args]), html_br() );        $statusbox->add( html_span('boxlabel_darkgreen', "Arguments:"), Dumper($call[args]), html_br() );
859      }      }
860      $statusbox->add( html_span('boxlabel_darkgreen', "Count:"), $this->get_result_count(), html_br() );      $statusbox->add( html_span('boxlabel_darkgreen', "Count:"), $this->get_result_count(), html_br() );
861      print $statusbox->render();      $box->add( $statusbox );
862    
863        print $box->render();
864    
865    }    }
866    

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.13

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed