MediaWiki
REL1_22
|
00001 <?php 00030 interface IORMTable { 00031 00039 public function getName(); 00040 00049 public function getRowClass(); 00050 00073 public function getFields(); 00074 00083 public function getDefaults(); 00084 00094 public function getSummaryFields(); 00095 00112 public function select( $fields = null, array $conditions = array(), 00113 array $options = array(), $functionName = null ); 00114 00128 public function selectObjects( $fields = null, array $conditions = array(), 00129 array $options = array(), $functionName = null ); 00130 00144 public function rawSelect( $fields = null, array $conditions = array(), 00145 array $options = array(), $functionName = null ); 00146 00169 public function selectFields( $fields = null, array $conditions = array(), 00170 array $options = array(), $collapse = true, $functionName = null ); 00171 00185 public function selectRow( $fields = null, array $conditions = array(), 00186 array $options = array(), $functionName = null ); 00187 00201 public function rawSelectRow( array $fields, array $conditions = array(), 00202 array $options = array(), $functionName = null ); 00203 00221 public function selectFieldsRow( $fields = null, array $conditions = array(), 00222 array $options = array(), $collapse = true, $functionName = null ); 00223 00234 public function has( array $conditions = array() ); 00235 00243 public function exists(); 00244 00259 public function count( array $conditions = array(), array $options = array() ); 00260 00271 public function delete( array $conditions, $functionName = null ); 00272 00283 public function getAPIParams( $requireParams = false, $setDefaults = false ); 00284 00294 public function getFieldDescriptions(); 00295 00303 public function getReadDb(); 00304 00312 public function setReadDb( $db ); 00313 00321 public function getTargetWiki(); 00322 00330 public function setTargetWiki( $wiki ); 00331 00342 public function getReadDbConnection(); 00343 00354 public function getWriteDbConnection(); 00355 00365 public function getLoadBalancer(); 00366 00377 public function releaseConnection( DatabaseBase $db ); 00378 00391 public function update( array $values, array $conditions = array() ); 00392 00401 public function updateSummaryFields( $summaryFields = null, array $conditions = array() ); 00402 00414 public function getPrefixedValues( array $values ); 00415 00426 public function getPrefixedFields( array $fields ); 00427 00437 public function getPrefixedField( $field ); 00438 00448 public function unprefixFieldNames( array $fieldNames ); 00449 00459 public function unprefixFieldName( $fieldName ); 00460 00472 public function getFieldsFromDBResult( stdClass $result ); 00473 00483 public function newRowFromDBResult( stdClass $result ); 00484 00495 public function newRow( array $data, $loadDefaults = false ); 00496 00504 public function getFieldNames(); 00505 00515 public function canHaveField( $name ); 00516 00517 }