/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/widgets/data_list/SQLDataListSource.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/widgets/data_list/SQLDataListSource.inc

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

revision 1.2 by jonen, Sat Feb 22 21:08:37 2003 UTC revision 1.3 by jonen, Thu May 6 12:59:55 2004 UTC
# Line 335  class SQLDataListSource extends DataList Line 335  class SQLDataListSource extends DataList
335       * @return string       * @return string
336       */       */
337      function build_groupby_clause() {      function build_groupby_clause() {
338          $groupby = $this->_groupby_clause;          $groupby = $this->_db_options["groupby_clause"];
339          if ($groupby) {          if ($groupby) {
340              $groupby = " GROUP BY $groupby ";              $groupby = " GROUP BY $groupby ";
341          }          }
# Line 421  class SQLDataListSource extends DataList Line 421  class SQLDataListSource extends DataList
421       * Do the query to the DB and pull in all of       * Do the query to the DB and pull in all of
422       * the records locally.       * the records locally.
423       *       *
424         * @return boolean - the query passed/failed.
425       */       */
426      function do_query() {      function do_query() {
427                  //execute the sql query.                  //execute the sql query.
428                  //we don't actually get the results of                  //we don't actually get the results of
429                  //the query here, when just execute it.                  //the query here, when just execute it.
430                  user_error("SQLDataListSource::do_query() - Child must override");                  user_error("SQLDataListSource::do_query() - Child must override");
431            return false;
432      }      }
433    
434          /**          /**
# Line 437  class SQLDataListSource extends DataList Line 439  class SQLDataListSource extends DataList
439           */           */
440          function get_next_data_row() {          function get_next_data_row() {
441             user_error("SQLDataListSource::get_next_data_row() - Child must override");             user_error("SQLDataListSource::get_next_data_row() - Child must override");
442           return array();
443          }                }      
444    
445      /**      /**

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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