~ubuntu-branches/ubuntu/utopic/fusionforge/utopic

« back to all changes in this revision

Viewing changes to common/tracker/ArtifactFactory.class.php

  • Committer: Bazaar Package Importer
  • Author(s): Roland Mas
  • Date: 2010-03-26 11:20:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100326112027-x16yjqjz9fgzwqtg
Tags: 5.0-1
New upstream release, woo-hoo!

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
         *      @param  array   Array of extra fields & elements to limit the query to.
99
99
         */
100
100
        function setup($offset,$order_col,$sort,$max_rows,$set,$_assigned_to,$_status,$_extra_fields=array()) {
101
 
//echo "<br />offset: $offset| order: $order|max_rows: $max_rows|_assigned_to: $_assigned_to|_status: $_status";
102
101
 
103
102
                if ((!$offset) || ($offset < 0)) {
104
103
                        $this->offset=0;
106
105
                        $this->offset=$offset;
107
106
                }
108
107
 
 
108
                // $max_rows == 0 means we want all the rows
 
109
                if (is_null($max_rows) || $max_rows < 0) {
 
110
                        $this->max_rows = 50 ;
 
111
                } else {
 
112
                        $this->max_rows = $max_rows ;
 
113
                }
 
114
 
109
115
                if (session_loggedin()) {
110
116
                        $u =& session_get_user();
111
117
                }
249
255
                }
250
256
                $this->extra_fields=$_extra_fields;
251
257
                $this->setChangedFrom($_changed);
252
 
 
253
 
                // if $max_rows == 0 it means we want all the rows
254
 
                if (is_null($max_rows) || $max_rows < 0) {
255
 
                        $max_rows=50;
256
 
                }
257
 
                if ($this->query_type == 'query') {
258
 
                        $this->max_rows=0;
259
 
                } else {
260
 
                        $this->max_rows=$max_rows;
261
 
                }
262
258
        }
263
259
 
264
260