Index: trunk/extensions/EducationProgram/includes/EPPager.php |
— | — | @@ -110,11 +110,19 @@ |
111 | 111 | return parent::formatRow( $row ); |
112 | 112 | } |
113 | 113 | |
| 114 | + /** |
| 115 | + * (non-PHPdoc) |
| 116 | + * @see TablePager::getIndexField() |
| 117 | + */ |
114 | 118 | function getIndexField() { |
115 | 119 | $c = $this->className; // Yeah, this is needed in PHP 5.3 >_> |
116 | 120 | return $c::getPrefixedField( 'id' ); |
117 | 121 | } |
118 | 122 | |
| 123 | + /** |
| 124 | + * (non-PHPdoc) |
| 125 | + * @see IndexPager::getQueryInfo() |
| 126 | + */ |
119 | 127 | function getQueryInfo() { |
120 | 128 | $c = $this->className; // Yeah, this is needed in PHP 5.3 >_> |
121 | 129 | return array( |
— | — | @@ -125,8 +133,9 @@ |
126 | 134 | } |
127 | 135 | |
128 | 136 | /** |
| 137 | + * Get the conditions to use in the query. |
| 138 | + * This is done by merging the filter controls conditions with those provided to the constructor. |
129 | 139 | * |
130 | | - * |
131 | 140 | * @since 0.1 |
132 | 141 | * |
133 | 142 | * @return array |
— | — | @@ -147,6 +156,10 @@ |
148 | 157 | return array_merge( $conds, $this->conds ); |
149 | 158 | } |
150 | 159 | |
| 160 | + /** |
| 161 | + * (non-PHPdoc) |
| 162 | + * @see TablePager::isFieldSortable() |
| 163 | + */ |
151 | 164 | function isFieldSortable( $name ) { |
152 | 165 | $c = $this->className; // Yeah, this is needed in PHP 5.3 >_> |
153 | 166 | return in_array( |