/[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.1 by jonen, Thu Jan 30 03:29:46 2003 UTC revision 1.3 by jonen, Thu May 6 12:59:55 2004 UTC
# Line 134  class SQLDataListSource extends DataList Line 134  class SQLDataListSource extends DataList
134                  return $this->_db_options["count_column"];                  return $this->_db_options["count_column"];
135          }          }
136    
   
         /**  
          * this gets the count column  
          *  
          * @return string  
          */  
         function get_count_column() {  
                 return $this->_db_options["count_column"];  
         }  
   
137      // This functions joins an arbitrary number of clauses using the      // This functions joins an arbitrary number of clauses using the
138      // specified connector. It can be used in one of the following two      // specified connector. It can be used in one of the following two
139      // ways:      // ways:
# Line 345  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 431  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 447  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.1  
changed lines
  Added in v.1.3

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