本文整理汇总了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);
}