本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例8: frmAction
public function frmAction($id = NULL)
{
$acl = $this->getInstance($id);
$_SESSION['bread']['object'] = $acl;
parent::frmAction($id);
}
示例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;
}
示例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);
}