本文整理匯總了PHP中ModuleAdminController::processUpdate方法的典型用法代碼示例。如果您正苦於以下問題:PHP ModuleAdminController::processUpdate方法的具體用法?PHP ModuleAdminController::processUpdate怎麽用?PHP ModuleAdminController::processUpdate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ModuleAdminController
的用法示例。
在下文中一共展示了ModuleAdminController::processUpdate方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: processUpdate
public function processUpdate()
{
$response = LGRespuesta::getResponseByQuestion((int) Tools::getValue('id_consulta'));
if (!Validate::isLoadedObject($response)) {
$new_response = true;
} else {
$new_response = false;
}
$res = $object = parent::processUpdate();
if ($res) {
$res = $res->response->update();
if ($res && $new_response) {
$res = $this->sendEmailResponseConfirmation($object);
}
}
return $res;
}
示例2: processUpdate
public function processUpdate()
{
$object = parent::processUpdate();
// Cover
if (isset($_FILES['cover']) && $_FILES['cover']['size'] > 0) {
$object->cover = pathinfo($_FILES['cover']['name'], PATHINFO_EXTENSION);
$object->update();
}
if (!empty($object->cover) && isset($_FILES['cover']) && $_FILES['cover']['size'] > 0) {
$this->createCover($_FILES['cover']['tmp_name'], $object);
}
// Featured
if (isset($_FILES['featured']) && $_FILES['featured']['size'] > 0) {
$object->featured = pathinfo($_FILES['featured']['name'], PATHINFO_EXTENSION);
$object->update();
}
if (!empty($object->featured) && isset($_FILES['featured']) && $_FILES['featured']['size'] > 0) {
$this->createFeatured($_FILES['featured']['tmp_name'], $object);
}
$languages = Language::getLanguages(false);
$this->updateTags($languages, $object);
$this->updateAssoShop($object->id);
return $object;
}
示例3: processUpdate
public function processUpdate()
{
$object = parent::processUpdate();
// Cover
if (isset($_FILES['cover']) && $_FILES['cover']['size'] > 0) {
$object->cover = pathinfo($_FILES['cover']['name'], PATHINFO_EXTENSION);
$object->update();
}
if (!empty($object->cover) && isset($_FILES['cover']) && $_FILES['cover']['size'] > 0) {
$this->createCover($_FILES['cover']['tmp_name'], $object);
}
$this->updateAssoShop($object->id);
return true;
}
示例4: processUpdate
public function processUpdate()
{
$object = parent::processUpdate();
$this->updateAssoShop($object->id);
return $object;
}