Update attributes of the current nav item type relation.

@param array $postData
@return boolean Whether the update has been successfull or not
175851
public function updateType(array $postData)
    {
        $model = $this->getType();
        $model->setAttributes($postData);
        return $model->update();
    }
1146070
public function storeNewCartData($cartData)
    {
        $cartItems = $cartData['items'];
        unset($cartData['items']);
        $cartId = $this->storeCartDetails($cartData);

        foreach ($cartItems as $cartItem) {
            $this->addCartItem($cartId, $cartItem);
        }
    }
1193330
function postStore( $objectAttribute )
    {
        // Update url-object link
        $urlValue = $objectAttribute->content();
        if ( trim( $urlValue ) != '' )
        {
            $urlID = eZURL::registerURL( $urlValue );
            $objectAttributeID = $objectAttribute->attribute( 'id' );
            $objectAttributeVersion = $objectAttribute->attribute( 'version' );

            $db = eZDB::instance();
            $db->begin();

            $objectLinkList = eZURLObjectLink::fetchLinkObjectList( $objectAttributeID, $objectAttributeVersion );

            // In order not to have duplicated links, delete existing ones that have been created during the version creation process
            // and create a clean one (we can't update url_id since there's no primary key). This fixes EZP-20988
            if ( !empty( $objectLinkList ) )
            {
                eZURLObjectLink::removeURLlinkList( $objectAttributeID, $objectAttributeVersion );
            }

            $linkObjectLink = eZURLObjectLink::create( $urlID, $objectAttributeID, $objectAttributeVersion );
            $linkObjectLink->store();

            $db->commit();
        }
    }
1079690
public function update_data( $params, $where, $post, $update ) {
		$table  = $this->get_related_table_name();
		$params = array_merge( $params, $this->get_update_data_params( $post, $update ) );
		list( $params, $where ) = $this->update_misc( $params, $where, $post, $update );

		return $this->app->db->insert_or_update( $table, $params, $where );
	}
388555
def _change_kind(self, post_uid):
        '''
        
        '''

        post_data = self.get_post_data()

        logger.info('admin post update: {0}'.format(post_data))

        MPost.update_misc(post_uid, kind=post_data['kcat'])
        # self.update_category(post_uid)

        update_category(post_uid, post_data)
        self.redirect('/{0}/{1}'.format(router_post[post_data['kcat']], post_uid))
187126
public function UpdateShippingAddress($aAddressData)
    {
        $oOldAddress = clone $this->GetShippingAddress();
        $oOldBillingAddress = clone $this->GetBillingAddress();
        $bUpdated = parent::UpdateShippingAddress($aAddressData);

        $oNewAddress = $this->GetShippingAddress();
        if (false === $oNewAddress->hasSameDataInSqlData($oOldAddress)) {
            $this->hookChangedShippingAddress($oOldAddress, $oNewAddress);
        }
        $oNewBillingAddress = $this->GetBillingAddress();
        if (false === $oNewBillingAddress->hasSameDataInSqlData($oOldBillingAddress)) {
            $this->hookChangedBillingAddress($oOldBillingAddress, $oNewBillingAddress);
        }

        return $bUpdated;
    }
1314417
public function checkData(array $currentData, array $newData)
    {
        return ($currentData && $newData && $currentData !== $newData)
            ? $this->updateData($newData)
            : $newData;
    }
284338
public function update(Post $post, UpdatePostRequest $request)
    {
        $this->authorize(PostsPolicy::PERMISSION_UPDATE);

        $post->updateOne($request->getValidatedData());

        $this->transNotification('updated', ['title' => $post->title], $post->toArray());

        return redirect()->route('admin::blog.posts.show', [$post]);
    }
1139892
public function updateProduct(array $data)
    {
        $result = $this->wechat->httpRaw(self::WECHAT_PRODUCT_UPDATE_PREFIX, $data, [
            'access_token' => $this->wechat->getAccessToken()
        ]);
        return isset($result['errmsg']) && $result['errmsg'] == 'success';
    }
640375
public function actionUpdateItemTypeData($navItemId)
    {
        return NavItem::findOne($navItemId)->updateType(Yii::$app->request->post());
    }
751734
public function postupdateNotExist($post_id)
    {
        if ($this->countPostUpdates($post_id) == 0)
        {
            DB::table('posts')
                ->where('id', '=', $post_id)
                ->update(['postupdate' => 0])
            ;
        }
    }
1100997
public static function allowContentItem($postdata) {
        if ( ! isset($postdata['content_item_return_url']) ) return false;
        if ( isset($postdata['accept_media_types']) ) {
            $web_mimetype = 'text/html';
            $m = new Mimeparse;
            $web_allowed = $m->best_match(array($web_mimetype), $postdata['accept_media_types']);
            if ( $web_mimetype != $web_allowed ) return false;
            return true;
        }
        return false;
    }
253331
public function validate($value, $postData) {
        foreach ($this->validatorList as $validator) {
            $result = $validator($value, $postData);

            if ($result !== true) {
                return $result;
            }
        }

        return true;
    }
409309
public function submit($postContent)
    {
        $linkData = [];
        if (!empty($postContent['internal'])) {
            $linkData['link'] = 'internal://' . $postContent['internal'];
        } elseif (!empty($postContent['custom'])) {
            $linkData['link'] = $postContent['custom'];
        } else {
            $linkData['link'] = '';
        }
        $linkData['target'] = !empty($postContent['target']) ? $postContent['target'] : '';
        return $this->save(empty($linkData['link']) ? '' : serialize($linkData));
    }
261907
private function executePostConnectionOptions(\stdClass $initData)
    {
        if (isset($initData->password)) {
            $this->authenticate($initData->password);
        }
        if (isset($initData->database)) {
            $this->selectDatabase($initData->database);
        }
    }
992886
protected final function validateUpdateData(array $data = null) {
		if ($data === null && isset($this->_formData)) {
			$data = $this->_formData;
		}
		if ($this->rules) {
			$newRules = [];
			foreach ($data as $key => $v) {
				if (isset($this->rules[ $key ])) {
					$newRules[ $key ] = $this->rules[ $key ];
				}
			}
			if ($newRules) {
				return $this->validateData($newRules, $data);
			}
		}

		return true;
	}
224547
public function update($itemData, $createIfAbsent = false)
    {
        $newData = $this->preUpdate($itemData, $createIfAbsent);
        $result = $this->dataStore->update($newData, $createIfAbsent);

        return $this->postUpdate($result, $newData, $createIfAbsent);
    }