if ( $result !== false ) {
$this->setFields( $this->table->getFieldsFromDBResult( $result ), $override );
if ( $result !== false ) {
$this->setFields( $this->table->getFieldsFromDBResult( $result ), $override );
*/
public function setId( $id ) {
$this->setField( 'id', $id );
*/
public function setId( $id ) {
$this->setField( 'id', $id );
*/
public function hasField( $name ) {
return array_key_exists( $name, $this->fields );
*/
public function hasField( $name ) {
return array_key_exists( $name, $this->fields );
*/
public function setFields( array $fields, $override = true ) {
foreach ( $fields as $name => $value ) {
*/
public function setFields( array $fields, $override = true ) {
foreach ( $fields as $name => $value ) {
*/
public function loadDefaults( $override = true ) {
$this->setFields( $this->table->getDefaults(), $override );
*/
public function loadDefaults( $override = true ) {
$this->setFields( $this->table->getDefaults(), $override );
*/
protected function saveExisting( $functionName = null ) {
$dbw = $this->table->getWriteDbConnection();
*/
protected function saveExisting( $functionName = null ) {
$dbw = $this->table->getWriteDbConnection();
*/
protected function insert( $functionName = null, array $options = null ) {
$dbw = $this->table->getWriteDbConnection();
*/
protected function insert( $functionName = null, array $options = null ) {
$dbw = $this->table->getWriteDbConnection();
- * 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.
+ * 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.
*/
public function addToField( $field, $amount ) {
return $this->table->addToField( $this->getUpdateConditions(), $field, $amount );
*/
public function addToField( $field, $amount ) {
return $this->table->addToField( $this->getUpdateConditions(), $field, $amount );
* @param array|string|null $summaryFields
*/
public function loadSummaryFields( $summaryFields = null ) {
* @param array|string|null $summaryFields
*/
public function loadSummaryFields( $summaryFields = null ) {