RvTwoClasses
[ class tree: RvTwoClasses ] [ index: RvTwoClasses ] [ all elements ]

Class: SearchResult

Source Location: /rvtwo/classes/searchResult.php

Class Overview


Class Description: Wrapper class for an array of data that can be stored in the session array and


Author(s):

  • Jan van der Breggen

Variables

Methods



Class Details

[line 12]
Class Description: Wrapper class for an array of data that can be stored in the session array and

accessed by subsequent AJAX calls for client scrolling through the data set in small chunks. *




Tags:

author:  Jan van der Breggen
since:  : 29/04/2009


[ Top ]


Class Variables

$columns = array()

[line 21]



Tags:

access:  private

Type:   mixed


[ Top ]

$currentPage =  -1

[line 18]



Tags:

access:  private

Type:   mixed


[ Top ]

$cursor =  0

[line 20]



Tags:

access:  private

Type:   mixed


[ Top ]

$data = array()

[line 15]



Tags:

access:  private

Type:   mixed


[ Top ]

$numberOfPages =  0

[line 19]



Tags:

access:  private

Type:   mixed


[ Top ]

$numberOfResults =  0

[line 17]



Tags:

access:  private

Type:   mixed


[ Top ]

$resultsPerPage =  0

[line 16]



Tags:

access:  private

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 24]

SearchResult __construct( $data, $resultsPerPage, [ $idField = 'id'])



Parameters:

   $data  
   $resultsPerPage  
   $idField  

[ Top ]

method getColumns [line 46]

void getColumns( )



[ Top ]

method getCurrentPageNumber [line 116]

void getCurrentPageNumber( )



[ Top ]

method getCurrentPageNumberForDisplay [line 121]

void getCurrentPageNumberForDisplay( )



[ Top ]

method getNextPage [line 73]

void getNextPage( )



[ Top ]

method getNumberOfPages [line 126]

void getNumberOfPages( )



[ Top ]

method getNumberOfResults [line 131]

void getNumberOfResults( )



[ Top ]

method getPage [line 99]

void getPage( $number)



Parameters:

   $number  

[ Top ]

method getPreviousPage [line 94]

void getPreviousPage( )



[ Top ]

method getResultByID [line 151]

void getResultByID( $id)



Parameters:

   $id  

[ Top ]

method getSelectValues [line 62]

void getSelectValues( $idField, $arg1, [ $arg2 = ''])



Parameters:

   $idField  
   $arg1  
   $arg2  

[ Top ]

method makeColumnArray [line 39]

void makeColumnArray( )



[ Top ]

method makeDataArray [line 51]

void makeDataArray( $data, $idField)



Parameters:

   $data  
   $idField  

[ Top ]

method nextPagesLeft [line 137]

void nextPagesLeft( )



[ Top ]

method previousPagesLeft [line 144]

void previousPagesLeft( )



[ Top ]


Documentation generated on Mon, 18 May 2009 11:22:17 +0200 by phpDocumentor 1.4.1