本文整理汇总了PHP中AIR2_Record::postSave方法的典型用法代码示例。如果您正苦于以下问题:PHP AIR2_Record::postSave方法的具体用法?PHP AIR2_Record::postSave怎么用?PHP AIR2_Record::postSave使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIR2_Record
的用法示例。
在下文中一共展示了AIR2_Record::postSave方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: postSave
/**
* Re-cache source authz on any save
*
* @param Doctrine_Event $event
*/
public function postSave($event)
{
parent::postSave($event);
SrcOrgCache::refresh_cache($this->so_src_id);
$this->Source->set_and_save_src_status();
// uniqueness of home flag
if ($this->so_home_flag) {
$conn = AIR2_DBManager::get_master_connection();
$q = "update src_org set so_home_flag = 0 where so_src_id = ? and so_org_id != ?";
$conn->exec($q, array($this->so_src_id, $this->so_org_id));
}
}
示例2: postSave
/**
* Make sure we only have 1 primary
*
* @param Doctrine_Event $event
*/
public function postSave($event)
{
air2_fix_src_primary($this);
parent::postSave($event);
}
示例3: postSave
/**
* Make sure the user always has one home flag
*
* @param Doctrine_Event $event
*/
public function postSave($event)
{
if ($this->uo_home_flag) {
$conn = AIR2_DBManager::get_master_connection();
$conn->execute("UPDATE user_org SET uo_home_flag = FALSE WHERE " . "uo_user_id = ? AND uo_id != ?", array($this->uo_user_id, $this->uo_id));
}
parent::postSave($event);
}
示例4: postSave
/**
* Do the actual image writing/conversion
*
* @param unknown $event
*/
public function postSave($event)
{
parent::postSave($event);
if ($this->_set_image) {
$this->make_sizes();
}
}