| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 593 lines (13 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
ORMRow:: (30 methods):
__construct()
loadFields()
getField()
loadAndGetField()
removeField()
getId()
setId()
hasField()
hasIdField()
getWriteValues()
setFields()
toArray()
loadDefaults()
save()
saveExisting()
getUpdateConditions()
insert()
remove()
beforeRemove()
getBeforeRemoveFields()
onRemoved()
getFields()
getSetFieldNames()
setField()
addToField()
getFieldNames()
loadSummaryFields()
setUpdateSummaries()
setSummaryMode()
getTable()
| __construct( IORMTable $table = null, $fields = null, $loadDefaults = false ) X-Ref |
| Constructor. param: IORMTable|null $table Deprecated since 1.22 param: array|null $fields param: bool $loadDefaults Deprecated since 1.22 |
| loadFields( $fields = null, $override = true, $skipLoaded = false ) X-Ref |
| Load the specified fields from the database. param: array|null $fields param: bool $override param: bool $skipLoaded return: bool Success indicator |
| getField( $name, $default = null ) X-Ref |
| Gets the value of a field. param: string $name Field name param: mixed $default Default value to return when none is found return: mixed |
| loadAndGetField( $name ) X-Ref |
| Gets the value of a field but first loads it if not done so already. param: string $name return: mixed |
| removeField( $name ) X-Ref |
| Remove a field. param: string $name |
| getId() X-Ref |
| Returns the objects database id. return: int|null |
| setId( $id ) X-Ref |
| Sets the objects database id. param: int|null $id |
| hasField( $name ) X-Ref |
| Gets if a certain field is set. param: string $name return: bool |
| hasIdField() X-Ref |
| Gets if the id field is set. return: bool |
| getWriteValues() X-Ref |
| Gets the fields => values to write to the table. return: array |
| setFields( array $fields, $override = true ) X-Ref |
| Sets multiple fields. param: array $fields The fields to set param: bool $override Override already set fields with the provided values? |
| toArray( $fields = null, $incNullId = false ) X-Ref |
| Serializes the object to an associative array which can then easily be converted into JSON or similar. param: null|array $fields param: bool $incNullId return: array |
| loadDefaults( $override = true ) X-Ref |
| Load the default values, via getDefaults. param: bool $override |
| save( $functionName = null ) X-Ref |
| Writes the answer to the database, either updating it when it already exists, or inserting it when it doesn't. param: string|null $functionName return: bool Success indicator |
| saveExisting( $functionName = null ) X-Ref |
| Updates the object in the database. param: string|null $functionName return: bool Success indicator |
| getUpdateConditions() X-Ref |
| Returns the WHERE considtions needed to identify this object so it can be updated. return: array |
| insert( $functionName = null, array $options = null ) X-Ref |
| Inserts the object into the database. param: string|null $functionName param: array|null $options return: bool Success indicator |
| remove() X-Ref |
| Removes the object from the database. return: bool Success indicator |
| beforeRemove() X-Ref |
| Gets called before an object is removed from the database. |
| getBeforeRemoveFields() X-Ref |
| Before removal of an object happens, @see beforeRemove gets called. This method loads the fields of which the names have been returned by this one (or all fields if null is returned). This allows for loading info needed after removal to get rid of linked data and the like. return: array|null |
| onRemoved() X-Ref |
| Gets called after successful removal. Can be overridden to get rid of linked data. |
| getFields() X-Ref |
| Return the names and values of the fields. return: array |
| getSetFieldNames() X-Ref |
| Return the names of the fields. return: array |
| setField( $name, $value ) X-Ref |
| Sets the value of a field. Strings can be provided for other types, so this method can be called from unserialization handlers. param: string $name param: mixed $value |
| addToField( $field, $amount ) X-Ref |
| Add an amount (can be negative) to the specified field (needs to be numeric). param: string $field param: int $amount return: bool Success indicator |
| getFieldNames() X-Ref |
| Return the names of the fields. return: array |
| loadSummaryFields( $summaryFields = null ) X-Ref |
| Computes and updates the values of the summary fields. param: array|string|null $summaryFields |
| setUpdateSummaries( $update ) X-Ref |
| Sets the value for the @see $updateSummaries field. param: bool $update |
| setSummaryMode( $summaryMode ) X-Ref |
| Sets the value for the @see $inSummaryMode field. param: bool $summaryMode |
| getTable() X-Ref |
| Returns the table this IORMRow is a row in. return: IORMTable |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |