本文整理汇总了PHP中Core_Model_Default::save方法的典型用法代码示例。如果您正苦于以下问题:PHP Core_Model_Default::save方法的具体用法?PHP Core_Model_Default::save怎么用?PHP Core_Model_Default::save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Core_Model_Default
的用法示例。
在下文中一共展示了Core_Model_Default::save方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: save
public function save()
{
if (!$this->getId()) {
$this->setLayoutId(1)->setTmpKey(uniqid())->setSubdomainIsValidated(1)->setIsActive(1)->setIsLocked(0);
}
return parent::save();
}
示例2: save
public function save()
{
if ($this->getIsIllimited()) {
$this->setEndDate(null);
}
parent::save();
}
示例3: save
public function save()
{
if (!$this->getId()) {
$this->setIsRead(0);
}
return parent::save();
}
示例4: save
public function save()
{
parent::save();
if ($this->getAppId() and is_array($this->_value_ids)) {
$this->saveValueIds($this->getAppId());
}
}
示例5: save
public function save()
{
if (!$this->getPeriodId()) {
$this->setPeriodId(self::PERIOD_WEEKLY);
}
return parent::save();
}
示例6: save
public function save()
{
if (!$this->getId()) {
$this->setTypeId($this->_type_id);
}
parent::save();
return $this;
}
示例7: save
public function save()
{
parent::save();
if ($this->_language_data) {
$this->getTable()->saveLanguageData($this->getId(), $this->_language_data);
}
return $this;
}
示例8: save
public function save()
{
parent::save();
if ($resources = $this->getResources()) {
$this->getTable()->saveResources($this->getId(), $resources);
}
return $this;
}
示例9: save
public function save()
{
parent::save();
$blocks = $this->getData('block') ? $this->getData('block') : array();
// if($this->getData('block')) {
$this->getTable()->saveBlock($this->getId(), $blocks);
// }
}
示例10: save
public function save()
{
$price = trim(str_replace(array(Core_Model_Language::getCurrencySymbol(), ' '), '', $this->getData('price')));
$filter = new Zend_Filter_LocalizedToNormalized();
$filter->setOptions(array('locale' => Zend_Registry::get('Zend_Locale')));
$this->setData('price', $filter->filter($price));
parent::save();
return $this;
}
示例11: save
public function save()
{
if ($this->getAppId()) {
$this->getTable()->saveAppBlock($this);
} else {
parent::save();
}
return $this;
}
示例12: save
public function save($comment_id, $customer_id, $ip, $ua)
{
$duplicate_like = $this->getTable()->findByIp($comment_id, $customer_id, $ip, $ua);
if (count($duplicate_like) == 0) {
parent::save();
return true;
} else {
return false;
}
}
示例13: save
public function save()
{
parent::save();
if (!$this->getIsDeleted() and $this->getTypeId() == 'picasa' || $this->getTypeId() == 'instagram') {
if ($this->getTypeInstance()->getId()) {
$this->getTypeInstance()->delete();
}
$this->getTypeInstance()->setData($this->_getTypeInstanceData())->setGalleryId($this->getId())->save();
}
return $this;
}
示例14: save
public function save()
{
$isDeleted = $this->getIsDeleted();
parent::save();
if (!$isDeleted) {
if ($this->getTypeInstance()->getId()) {
$this->getTypeInstance()->delete();
}
$this->getTypeInstance()->setData($this->_getTypeInstanceData())->setGalleryId($this->getId())->save();
}
return $this;
}
示例15: save
public function save()
{
if (!$this->getSkipIsVisibleState()) {
// $config = new Comment_Model_Pos_Config();
// $config->findByPosId($this->getPosId());
// $this->setIsVisible((int) $config->isAutocommit());
// Zend_Debug::dump($config->getData());
// Zend_Debug::dump($this->getData());
// die;
}
$this->setIsVisible(1);
return parent::save();
}