*/ interface IORMRow { /** * Load the specified fields from the database. * * @since 1.20 * @deprecated since 1.22 * * @param array|null $fields * @param boolean $override * @param boolean $skipLoaded * * @return bool Success indicator */ public function loadFields( $fields = null, $override = true, $skipLoaded = false ); /** * Gets the value of a field. * * @since 1.20 * * @param string $name * @param mixed $default * * @throws MWException * @return mixed */ public function getField( $name, $default = null ); /** * Gets the value of a field but first loads it if not done so already. * * @since 1.20 * @deprecated since 1.22 * * @param string $name * * @return mixed */ public function loadAndGetField( $name ); /** * Remove a field. * * @since 1.20 * * @param string $name */ public function removeField( $name ); /** * Returns the objects database id. * * @since 1.20 * * @return integer|null */ public function getId(); /** * Sets the objects database id. * * @since 1.20 * * @param integer|null $id */ public function setId( $id ); /** * Gets if a certain field is set. * * @since 1.20 * * @param string $name * * @return boolean */ public function hasField( $name ); /** * Gets if the id field is set. * * @since 1.20 * * @return boolean */ public function hasIdField(); /** * Sets multiple fields. * * @since 1.20 * * @param array $fields The fields to set * @param boolean $override Override already set fields with the provided values? */ public function setFields( array $fields, $override = true ); /** * Serializes the object to an associative array which * can then easily be converted into JSON or similar. * * @since 1.20 * * @param null|array $fields * @param boolean $incNullId * * @return array */ public function toArray( $fields = null, $incNullId = false ); /** * Load the default values, via getDefaults. * * @since 1.20 * @deprecated since 1.22 * * @param boolean $override */ public function loadDefaults( $override = true ); /** * Writes the answer to the database, either updating it * when it already exists, or inserting it when it doesn't. * * @since 1.20 * * @param string|null $functionName * @deprecated since 1.22 * * @return boolean Success indicator */ public function save( $functionName = null ); /** * Removes the object from the database. * * @since 1.20 * @deprecated since 1.22 * * @return boolean Success indicator */ public function remove(); /** * Return the names and values of the fields. * * @since 1.20 * * @return array */ public function getFields(); /** * Return the names of the fields. * * @since 1.20 * * @return array */ public function getSetFieldNames(); /** * Sets the value of a field. * Strings can be provided for other types, * so this method can be called from unserialization handlers. * * @since 1.20 * * @param string $name * @param mixed $value * * @throws MWException */ public function setField( $name, $value ); /** * Add an amount (can be negative) to the specified field (needs to be numeric). * * @since 1.20 * @deprecated since 1.22 * * @param string $field * @param integer $amount * * @return boolean Success indicator */ public function addToField( $field, $amount ); /** * Return the names of the fields. * * @since 1.20 * * @return array */ public function getFieldNames(); /** * Computes and updates the values of the summary fields. * * @since 1.20 * @deprecated since 1.22 * * @param array|string|null $summaryFields */ public function loadSummaryFields( $summaryFields = null ); /** * Sets the value for the @see $updateSummaries field. * * @since 1.20 * @deprecated since 1.22 * * @param boolean $update */ public function setUpdateSummaries( $update ); /** * Sets the value for the @see $inSummaryMode field. * * @since 1.20 * @deprecated since 1.22 * * @param boolean $summaryMode */ public function setSummaryMode( $summaryMode ); /** * Returns the table this IORMRow is a row in. * * @since 1.20 * @deprecated since 1.22 * * @return IORMTable */ public function getTable(); }