本文整理匯總了PHP中ControllerBase::saveAction方法的典型用法代碼示例。如果您正苦於以下問題:PHP ControllerBase::saveAction方法的具體用法?PHP ControllerBase::saveAction怎麽用?PHP ControllerBase::saveAction使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ControllerBase
的用法示例。
在下文中一共展示了ControllerBase::saveAction方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: saveAction
public function saveAction($r_controller = null, $r_action = null, $r_id = null)
{
$this->traiterCodeOnlineRessource();
//Valider la sélection ou pas du profil propriétaire
if (!$this->validationProfilProprietaire($this->request->getPost("profil_proprietaire_id"), $messageErreurProfilProprietaire)) {
foreach ($messageErreurProfilProprietaire as $message) {
$this->flash->error($message);
}
return $this->dispatcher->forward(array("controller" => $this->ctlName, "action" => "edit"));
}
parent::saveAction($r_controller, $r_action);
}
示例2: saveAction
function saveAction($r_controller = null, $r_action = null, $r_id = null)
{
try {
$save = parent::saveAction($r_controller, $r_action, $r_id);
} catch (Exception $ex) {
$this->flash->error($e->getMessage());
return $this->dispatcher->forward(array("controller" => $this->ctlName, "action" => "new", "param" => !is_null($r_id) ? "/" . $r_controller . "/" . $r_action . "/" . $r_id : ""));
}
// On récupère le profil propriétaire du groupe ajouté
$profil_proprietaire_id = $this->request->getPost("profil_proprietaire_id");
$id = intval($this->request->getPost('id'));
$this->gererAssociationParentsGroupeCouche($id, $profil_proprietaire_id);
$this->gererAssociationEnfantsGroupeCouche($id, $profil_proprietaire_id);
$igoVueGroupesRecursif = new IgoVueContexteGroupesRecursif();
$igoVueGroupesRecursif->refresh();
$igoVueContexteGroupesRecursif = new IgoVueContexteGroupesRecursif();
$igoVueContexteGroupesRecursif->refresh();
return $save;
}
示例3: saveAction
public function saveAction($r_controller = null, $r_action = null, $r_id = null)
{
$this->setGeometrieDesc();
parent::saveAction($r_controller, $r_action, $r_id);
}