From: Sam Reed Date: Sun, 12 Feb 2012 15:21:52 +0000 (+0000) Subject: Fixup documentation X-Git-Tag: 1.31.0-rc.0~24759 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=7e16bd810ffb3b42b0b63e5d3e2a44245ea9847c;p=lhc%2Fweb%2Fwiklou.git Fixup documentation --- diff --git a/includes/DBDataObject.php b/includes/DBDataObject.php index cb81a72b2c..acc0e05eb8 100644 --- a/includes/DBDataObject.php +++ b/includes/DBDataObject.php @@ -199,7 +199,7 @@ abstract class DBDataObject { * @param boolean $override * @param boolean $skipLoaded * - * @return Success indicator + * @return bool Success indicator */ public function loadFields( $fields = null, $override = true, $skipLoaded = false ) { if ( is_null( $this->getId() ) ) { @@ -209,18 +209,18 @@ abstract class DBDataObject { if ( is_null( $fields ) ) { $fields = array_keys( $this->getFieldTypes() ); } - + if ( $skipLoaded ) { $fields = array_diff( $fields, array_keys( $this->fields ) ); } - + if ( count( $fields ) > 0 ) { $results = $this->rawSelect( $this->getPrefixedFields( $fields ), array( $this->getPrefixedField( 'id' ) => $this->getId() ), array( 'LIMIT' => 1 ) ); - + foreach ( $results as $result ) { $this->setFields( $this->getFieldsFromDBResult( $result ), $override ); return true; @@ -1009,7 +1009,7 @@ abstract class DBDataObject { * @param array $options * @param array $joinConds * - * @return EPBObject|false + * @return DBObject|bool False on failure */ public static function selectRow( $fields = null, array $conditions = array(), array $options = array(), array $joinConds = array() ) { $options['LIMIT'] = 1; @@ -1034,7 +1034,7 @@ abstract class DBDataObject { * @param array $joinConds * @param boolean $collapse Set to false to always return each result row as associative array. * - * @return mixed|array|false + * @return mixed|array|bool False on failure */ public static function selectFieldsRow( $fields = null, array $conditions = array(), array $options = array(), array $joinConds = array(), $collapse = true ) { $options['LIMIT'] = 1; @@ -1253,7 +1253,7 @@ abstract class DBDataObject { * * @since 1.20 * - * @param boolean $update + * @param boolean $summaryMode */ public function setSummaryMode( $summaryMode ) { $this->inSummaryMode = $summaryMode;