Changeset 2483 for trunk/demos
- Timestamp:
- 07/31/2008 08:07:13 AM (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/sqlmap/protected/pages/Manual/DataMapperAPI.page
r1263 r2483 10 10 public function queryForList($statementName, $parameter=null, $result=null, 11 11 $skip=-1, $max=-1); 12 public function queryForPagedList($statementName, $parameter=null, $pageSize=10 );12 public function queryForPagedList($statementName, $parameter=null, $pageSize=10, $page=0); 13 13 public function queryForMap($statementName, $parameter=null, 14 14 $keyProperty=null, $valueProperty=null); … … 79 79 <h2>QueryForPagedList</h2> 80 80 <com:TTextHighlighter Language="php" CssClass="source"> 81 public function queryForPagedList($statementName, $parameter=null, $pageSize=10 );81 public function queryForPagedList($statementName, $parameter=null, $pageSize=10, $page); 82 82 </com:TTextHighlighter> 83 83 … … 107 107 <tt>$max</tt> as parameters in <tt>queryForList</tt>. 108 108 </div> 109 110 <div class="tip"><b class="tip">Tip:</b> 111 The <tt>$page</tt> parameter was introduced in 3.1.3. Before there was an additional 112 query to always fetch the data for page 0 on object creation. Since this 113 might be a problem in performance critical situations with 3.1.2, you might be better 114 of also using <tt>queryForList</tt> with <tt>$skip</tt> and <tt>$max</tt> instead. 115 </div> 116 109 117 110 118 <h2>QueryForMap</h2>
