예제 #1
0
 public static function getTableInstance()
 {
     if (!self::$_table) {
         self::$_table = new Model_Table_EmailCategories();
     }
     return self::$_table;
 }
예제 #2
0
 public function getEmailCategoryAction()
 {
     $response = array();
     $this->_helper->viewRenderer->setNoRender(true);
     $this->_helper->layout->disableLayout();
     if ($this->getRequest()->getParam('id') != null) {
         $iecIds = $this->getRequest()->getParam('id');
         $id = $this->getRequest()->getParam('email_category');
         $getEmailContent = Model_EmailCategories::getEmailCategoryById($id);
         $getIECEmailsByIds = Model_EntityIecinfo::getEmailsByIds($iecIds);
         $this->sendEmail('a', 'b');
         $response['status'] = 1;
         $response['message'] = "Status has been updated";
     } else {
         $response['status'] = 0;
         $response['message'] = 'No parameters passed';
     }
     echo json_encode($response);
 }