/** * 添加替换 * * @param App_Verify_Dm $dm * @return bool */ public function replaceVerify(App_Verify_Dm $dm) { if (($result = $dm->beforeAdd()) instanceof PwError) { return $result; } return $this->_getDao()->replace($dm->getData()); }
/** * 单条修改 * * @param int $uid * @param array $data * @return bool */ public function updateVerifyCheck($id, App_Verify_Dm $dm) { if (($result = $dm->beforeUpdate()) instanceof PwError) { return $result; } return $this->_getDao()->update($id, $dm->getData()); }