MediaWiki  1.23.0
IORMRow.php
Go to the documentation of this file.
1 <?php
34 interface IORMRow {
47  public function loadFields( $fields = null, $override = true, $skipLoaded = false );
48 
60  public function getField( $name, $default = null );
61 
72  public function loadAndGetField( $name );
73 
81  public function removeField( $name );
82 
90  public function getId();
91 
99  public function setId( $id );
100 
110  public function hasField( $name );
111 
119  public function hasIdField();
120 
129  public function setFields( array $fields, $override = true );
130 
142  public function toArray( $fields = null, $incNullId = false );
143 
152  public function loadDefaults( $override = true );
153 
165  public function save( $functionName = null );
166 
175  public function remove();
176 
184  public function getFields();
185 
193  public function getSetFieldNames();
194 
207  public function setField( $name, $value );
208 
220  public function addToField( $field, $amount );
221 
229  public function getFieldNames();
230 
239  public function loadSummaryFields( $summaryFields = null );
240 
249  public function setUpdateSummaries( $update );
250 
259  public function setSummaryMode( $summaryMode );
260 
269  public function getTable();
270 }
IORMRow\hasField
hasField( $name)
Gets if a certain field is set.
IORMRow\loadDefaults
loadDefaults( $override=true)
Load the default values, via getDefaults.
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
IORMRow
Definition: IORMRow.php:34
IORMRow\getFields
getFields()
Return the names and values of the fields.
IORMRow\getField
getField( $name, $default=null)
Gets the value of a field.
IORMRow\setUpdateSummaries
setUpdateSummaries( $update)
Sets the value for the.
IORMRow\getFieldNames
getFieldNames()
Return the names of the fields.
IORMRow\setField
setField( $name, $value)
Sets the value of a field.
IORMRow\removeField
removeField( $name)
Remove a field.
IORMRow\getSetFieldNames
getSetFieldNames()
Return the names of the fields.
IORMRow\setId
setId( $id)
Sets the objects database id.
IORMRow\addToField
addToField( $field, $amount)
Add an amount (can be negative) to the specified field (needs to be numeric).
IORMRow\loadAndGetField
loadAndGetField( $name)
Gets the value of a field but first loads it if not done so already.
IORMRow\getTable
getTable()
Returns the table this IORMRow is a row in.
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
IORMRow\save
save( $functionName=null)
Writes the answer to the database, either updating it when it already exists, or inserting it when it...
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:336
$value
$value
Definition: styleTest.css.php:45
IORMRow\setSummaryMode
setSummaryMode( $summaryMode)
Sets the value for the.
IORMRow\getId
getId()
Returns the objects database id.
IORMRow\loadFields
loadFields( $fields=null, $override=true, $skipLoaded=false)
Load the specified fields from the database.
IORMRow\loadSummaryFields
loadSummaryFields( $summaryFields=null)
Computes and updates the values of the summary fields.
IORMRow\hasIdField
hasIdField()
Gets if the id field is set.
IORMRow\setFields
setFields(array $fields, $override=true)
Sets multiple fields.
IORMRow\toArray
toArray( $fields=null, $incNullId=false)
Serializes the object to an associative array which can then easily be converted into JSON or similar...