hasRequestParameter("max_per_page")) $this->getUser()->setResultsPerPage($this->getRequestParameter("max_per_page")); return parent::executeList(); } public function executeCreate() { $this->setTemplate("edit"); return $this->executeEdit(); } public function handleErrorCreate() { $this->setTemplate("edit"); return $this->handleErrorEdit(); } public function executeCreateMailbox() { $domain = DomainPeer::retrieveByPk($this->getRequestParameter('id')); $this->redirect("mailbox/create?mailbox[domain_id]=".$domain->getId()."&mailbox[name]=".sprintf("%s%d", $domain->getMailboxPrefix(), $domain->getMailboxCount()+1)."&mailbox[max_quota]=".$domain->getDefaultMailboxQuota() ); } public function executeViewMailboxes() { $this->redirect("mailbox/list?filter=filter&filters[domain_id]=".$this->getRequestParameter('id')); } protected function updateDomainFromRequest() { parent::updateDomainFromRequest(); if ($this->domain->getCreatorId() == NULL) { $this->domain->setCreatorId($this->getUser()->getId()); } } }