luser; $this->template->mailing = $luser->approval_requests[$id]; } function actionReject($id) { $luser = $this->luser; $mailing = $luser->approval_requests[$id]; $this->template->mailing = $mailing; $reason = $this->getParam('reason'); if (!$reason || strlen($reason)==0) { $reason = "No reason specified. Contact us for more information."; } $mailing->reject($luser, $this->getParam('mtime'), $reason); } function actionApprove($id) { $luser = $this->luser; $mailing = $luser->approval_requests[$id]; $this->template->mailing = $mailing; $mailing->approve($luser, $this->getParam('mtime')); } }