public static function getInstance()
 {
     if (!is_object(self::$_instance)) {
         //or if( is_null(self::$_instance) ) or if( self::$_instance == null )
         self::$_instance = new Admin_Model_NewsletterLog();
     }
     return self::$_instance;
 }
 public function editNewsletterAction()
 {
     $newsletterId = $this->getRequest()->getParam('newsletterId');
     if (is_numeric($newsletterId)) {
         $objNewsletterModel = new Admin_Model_NewsletterLog();
         $newsletter_details = $objNewsletterModel->getNewsletterDetailbyId($newsletterId);
         $this->view->data = $newsletter_details;
         if ($this->getRequest()->isPost()) {
             $description = $this->getRequest()->getParam('description');
             $Subject = $this->getRequest()->getParam('subject');
             if (isset($description) && isset($Subject)) {
                 $data = array('newsletter_subject' => $Subject, 'content' => $description);
                 $collection = $objNewsletterModel->UpdateNewsletter($data, $newsletterId);
                 $this->view->Msg = " Newsletter Updated succesfully.";
                 $newsletter_details = $objNewsletterModel->getNewsletterDetailbyId($newsletterId);
                 $this->view->data = $newsletter_details;
             }
         }
     }
 }