当前位置: 首页>>代码示例>>PHP>>正文


PHP DefaultController::frmAction方法代码示例

本文整理汇总了PHP中DefaultController::frmAction方法的典型用法代码示例。如果您正苦于以下问题:PHP DefaultController::frmAction方法的具体用法?PHP DefaultController::frmAction怎么用?PHP DefaultController::frmAction使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DefaultController的用法示例。


在下文中一共展示了DefaultController::frmAction方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: frmAction

 public function frmAction($id = NULL)
 {
     $disque = $this->getInstance($id);
     //TODO 4.4.1
     $this->view->setVars(array("disque" => $disque, "siteUrl" => $this->url->getBaseUri(), "baseHref" => $this->dispatcher->getControllerName()));
     parent::frmAction($id);
 }
开发者ID:leoarmand,项目名称:Framework_Phalcon,代码行数:7,代码来源:DisquesController.php

示例2: frmAction

 public function frmAction($id = NULL)
 {
     $message = $this->getInstance($id);
     $projects = Projet::find();
     $users = User::find();
     $this->view->setVars(array("message" => $message, "users" => $users, "projects" => $projects));
     parent::frmAction($id);
 }
开发者ID:aleboisselier,项目名称:Increase,代码行数:8,代码来源:MessagesController.php

示例3: frmAction

 public function frmAction($id = NULL)
 {
     $user = $this->getInstance($id);
     $roles = Role::find();
     $this->view->setVars(array("user" => $user, "siteUrl" => $this->url->getBaseUri(), "baseHref" => $this->dispatcher->getControllerName(), "roles" => $roles));
     $this->view->pick("users/edit");
     $_SESSION['bread']['object'] = $user;
     parent::frmAction($id);
 }
开发者ID:aleboisselier,项目名称:Increase,代码行数:9,代码来源:UsersController.php

示例4: frmAction

 public function frmAction($id = NULL)
 {
     $tache = $this->getInstance($id);
     $usecases = Usecase::find();
     $users = User::find("idRole<>3");
     $this->view->setVars(array("tache" => $tache, "users" => $users, "usecases" => $usecases));
     $_SESSION['bread']['object'] = $tache;
     $this->jquery->exec("\$('input[type=\"range\"]').rangeslider({\n  \t\t\t\t\t\t\t\tpolyfill: false,\n\t\t\t\t\t\t\t\tonSlide: function(position, value) {\n\t\t\t\t\t\t\t\t\t\$('.avancement').html(value.toString()+'%');\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t});", true);
     parent::frmAction($id);
 }
开发者ID:aleboisselier,项目名称:Increase,代码行数:10,代码来源:TachesController.php

示例5: frmAction

 public function frmAction($id = NULL)
 {
     $role = $this->getInstance($id);
     $controllers = array("Default" => array("name" => "Tous", "actions" => array("index" => "Lister", "frm" => "Modifiation des données Brutes", "update" => "Modifier/Ajouter", "delete" => "Supprimer", "show" => "Afficher les détails")), "Projects" => array("name" => "Projets", "actions" => array("manage" => "Ajouter/Modifier UseCases", "manageUc" => "Ajouter/Modifier Tâches")), "Roles" => array("name" => "Rôles", "actions" => array("updateACL" => "Mettre à jour es droits")), "Taches" => array("name" => "Tâches", "actions" => array()), "Messages" => array("name" => "Messages", "actions" => array()), "UseCases" => array("name" => "Use Cases", "actions" => array()), "Users" => array("name" => "Utilisateurs", "actions" => array()));
     $acls = Acl::find("idRole=" . $role->getId());
     $this->view->setVars(array("role" => $role, "acls" => AclController::toArray($acls), "controllers" => $controllers, "siteUrl" => $this->url->getBaseUri(), "baseHref" => $this->dispatcher->getControllerName()));
     $_SESSION['bread']['object'] = $role;
     $this->jquery->postFormOnClick(".validateACL", $this->dispatcher->getControllerName() . "/updateACL", "frmObject", "#content");
     parent::frmAction($id);
 }
开发者ID:aleboisselier,项目名称:Increase,代码行数:10,代码来源:RolesController.php

示例6: frmAction

 public function frmAction($id = NULL)
 {
     $user = $this->getInstance($id);
     $select = new HtmlSelect("role", "Rôle", "Sélectionnez un rôle...");
     $select->fromArray(array("admin", "user", "author"));
     $select->setValue($user->getRole());
     $select->compile($this->jquery, $this->view);
     $this->view->setVars(array("user" => $user, "siteUrl" => $this->url->getBaseUri(), "baseHref" => $this->dispatcher->getControllerName()));
     parent::frmAction($id);
 }
开发者ID:nicolasBREYNAERT,项目名称:increase,代码行数:10,代码来源:UsersController.php

示例7: frmAction

 public function frmAction($id = NULL)
 {
     $usecase = Usecase::findFirst("code='" . $id . "'");
     $projects = Projet::find();
     $users = User::find("idRole=2");
     $this->view->setVars(array("usecase" => $usecase, "users" => $users, "projects" => $projects));
     $_SESSION['bread']['object'] = $usecase;
     $this->jquery->exec("\$('input[type=\"range\"]').rangeslider({\n  \t\t\t\t\t\t\t\tpolyfill: false,\n\t\t\t\t\t\t\t\tonSlide: function(position, value) {\n\t\t\t\t\t\t\t\t\t\$('.avancement').html(value.toString()+'%');\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t});", true);
     parent::frmAction($id);
 }
开发者ID:aleboisselier,项目名称:Increase,代码行数:10,代码来源:UseCasesController.php

示例8: frmAction

 public function frmAction($id = NULL)
 {
     $acl = $this->getInstance($id);
     $_SESSION['bread']['object'] = $acl;
     parent::frmAction($id);
 }
开发者ID:aleboisselier,项目名称:Increase,代码行数:6,代码来源:AclController.php

示例9: frmAction

 public function frmAction($id = null)
 {
     $projet = $this->getInstance($id);
     $this->view->setVar("project", $projet);
     if ($projet->getNom() == "") {
         $projet->setNom("Nouveau Projet");
     }
     $managers = User::find('idRole=4');
     $clients = User::find("idRole=3");
     $this->view->setVars(array("clients" => $clients, "managers" => $managers));
     parent::frmAction($id);
     $_SESSION['bread']['object'] = $projet;
 }
开发者ID:aleboisselier,项目名称:Increase,代码行数:13,代码来源:ProjectsController.php

示例10: frmAction

 public function frmAction($id = NULL)
 {
     $user = $this->getInstance($id);
     $this->view->setVars(array("user" => $user, "siteUrl" => $this->url->getBaseUri(), "baseHref" => $this->dispatcher->getControllerName()));
     parent::frmAction($id);
 }
开发者ID:leoarmand,项目名称:Framework_Phalcon,代码行数:6,代码来源:UsersController.php


注:本文中的DefaultController::frmAction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。