public function execute()
 {
     parent::execute();
     $request = $this->getContext()->getRequest();
     $affiliate = $request->getAttribute('affiliate');
     $this->setAttribute('title', $affiliate->name . ' - ACB Database');
     $this->setAttribute('cssFileName', 'view');
     $this->setAttribute('affiliate', $affiliate);
 }
Exemplo n.º 2
0
 public function execute()
 {
     parent::execute();
     $request = $this->getContext()->getRequest();
     $affiliate = $request->getAttribute("affiliate");
     $members = $request->getAttribute("members");
     $needToApproveChanges = $request->getAttribute("needToApproveChanges");
     if ($affiliate->id != 0) {
         $this->setAttribute("title", $affiliate->name . " - ACB Database");
     } else {
         $this->setAttribute("title", "Add new affiliate - ACB Database");
     }
     $this->setAttribute("cssFileName", "form");
     $lastCertifiedTime = strtotime($affiliate->lastCertified);
     $this->setAttribute("affTypes", array("State" => "State", "Special-Interest" => "Special-Interest"));
     $this->setAttribute("lastCertifiedTime", $lastCertifiedTime);
     $this->setAttribute("affiliate", $affiliate);
     $this->setAttribute("members", $members);
     $this->setAttribute("needToApproveChanges", $needToApproveChanges);
     /*		$this->setAttribute("membersSelected", array_keys($members));
     		$this->setAttribute("membersList", $request->getAttribute("membersList"));
     */
 }
Exemplo n.º 3
0
 public function execute()
 {
     parent::execute();
     $this->setAttribute('title', 'Results on affiliate search - ACB Database');
     $this->setAttribute('cssFileName', 'list');
     $request = $this->getContext()->getRequest();
     $this->setAttribute('entries', $request->getAttribute('entries'));
     $this->setAttribute('count', $request->getAttribute('count') == 0 ? 'no' : $request->getAttribute('count'));
     $this->setAttribute('first', $request->getAttribute('first'));
     $this->setAttribute('end', $request->getAttribute('end'));
     $this->setAttribute('str', $request->getAttribute('str'));
     $this->setAttribute("pageCount", $request->getAttribute("pageCount"));
     $this->setAttribute("currentPage", $request->getAttribute("currentPage"));
     $this->setAttribute("searchRequest", $request->getAttribute("searchRequest"));
     $this->setAttribute("searchUrl", $request->getAttribute("searchUrl"));
     $this->setAttribute("sortUrl", $request->getAttribute("sortUrl"));
     $this->setAttribute("sortBy", $request->getAttribute("sortBy"));
     $this->setAttribute("sortOrder", $request->getAttribute("sortOrder"));
     $this->setAttribute("allDbSearch", $request->getAttribute("allDbSearch"));
     $this->setAttribute("userRole", $request->getAttribute("userRole"));
     if ($request->getAttribute('pages')) {
         $this->setAttribute('pages', $request->getAttribute('pages'));
     }
 }