本文整理汇总了PHP中ObjectModel::update方法的典型用法代码示例。如果您正苦于以下问题:PHP ObjectModel::update方法的具体用法?PHP ObjectModel::update怎么用?PHP ObjectModel::update使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectModel
的用法示例。
在下文中一共展示了ObjectModel::update方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: update
public function update($autodate = true, $nullValues = false)
{
if ((double) $this->conversion_rate <= 0) {
return false;
}
return parent::update($autodate, $nullValues);
}
示例2: update
public function update($nullValues = false)
{
self::$_nbProducts = 0;
$return = parent::update();
Module::hookExec('cart');
return $return;
}
示例3: update
public function update($null_values = false)
{
if (parent::update($null_values)) {
return $this->cleanPositions($this->id_cms_category);
}
return false;
}
示例4: update
public function update($null_values = false)
{
$return = parent::update($null_values);
if ($return) {
Hook::exec('actionAttributeSave', array('id_attribute' => $this->id));
}
return $return;
}
示例5: update
public function update($null_values = false)
{
Cache::clean('getContextualValue_' . $this->id . '_*');
if (!$this->reduction_currency) {
$this->reduction_currency = (int) Configuration::get('PS_CURRENCY_DEFAULT');
}
return parent::update($null_values);
}
示例6: update
public function update($autodate = true, $nullValues = false, $categories = false)
{
if (parent::update($autodate, $nullValues)) {
$ret = true;
}
$this->updateCategories($categories);
return $ret;
}
示例7: update
public function update($null_Values = false)
{
$res = parent::update($null_Values);
if ($res) {
$res = $this->response->save();
}
return $res;
}
示例8: update
public function update($null_values = false)
{
if (parent::update($null_values)) {
// Refresh cache of feature detachable because the row can be deactive
Configuration::updateGlobalValue('PS_VIRTUAL_PROD_FEATURE_ACTIVE', ProductDownload::isCurrentlyUsed($this->def['table'], true));
return true;
}
return false;
}
示例9: update
public function update($null_values = false)
{
if ($this->cover) {
$this->cover = 1;
} else {
$this->cover = null;
}
return parent::update($null_values);
}
示例10: update
public function update($null_values = false)
{
if (parent::update($null_values)) {
// Flush cache when we updating a new specific price
$this->flushCache();
return true;
}
return false;
}
示例11: update
public function update($auto_date = true, $null_values = false)
{
if (is_array($this->content)) {
$this->content = json_encode($this->content);
}
$return = parent::update($auto_date, $null_values);
$this->content = json_decode($this->content, true);
return $return;
}
示例12: update
public function update($null_values = false)
{
if (parent::update($null_values)) {
// Flush cache when we updating a new specific price
self::$_specificPriceCache = array();
Product::flushPriceCache();
return true;
}
return false;
}
示例13: update
public function update($nullValues = false)
{
if (!$this->updateZoneProducts()) {
return false;
}
if (!$this->updateCategories()) {
return false;
}
return parent::update($nullValues);
}
示例14: update
public function update($null_values = false)
{
$context = Context::getContext();
$id_shop = $context->shop->id;
$res = parent::update($null_values);
$res &= Db::getInstance()->execute('
REPLACE INTO `' . _DB_PREFIX_ . 'pagebuilderprofile_shop` (`id_shop`, `id_pagebuilderprofile`,`default`)
VALUES(' . (int) $id_shop . ', ' . (int) $this->id . ',' . ($this->isDefault() ? 1 : 0) . ')');
return $res;
}
示例15: update
public function update($null_values = false)
{
if ($this->default_on) {
$this->default_on = 1;
} else {
$this->default_on = null;
}
$return = parent::update($null_values);
Product::updateDefaultAttribute($this->id_product);
return $return;
}