Highway to PSR2
[openemr.git] / interface / modules / zend_modules / module / Application / src / Application / Plugin / Phimail.php
blobb036a9f1c77c6f9f6f28d7c2c8e27d1a3cb2dafd
1 <?php
2 /* +-----------------------------------------------------------------------------+
3 * OpenEMR - Open Source Electronic Medical Record
4 * Copyright (C) 2013 Z&H Consultancy Services Private Limited <sam@zhservices.com>
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as
8 * published by the Free Software Foundation, either version 3 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 * @author Riju KP <rijukp@zhservices.com>
19 * +------------------------------------------------------------------------------+
21 namespace Application\Plugin;
23 use Zend\Mvc\Controller\Plugin\AbstractPlugin;
24 use Application\Model\ApplicationTable;
25 use Application\Listener\Listener;
27 require_once($GLOBALS['srcdir'].'/direct_message_check.inc');
29 class Phimail extends AbstractPlugin
31 protected $application;
32 /**
34 * Application Table Object
35 * Listener Oblect
36 * @param type $sm Service Manager
38 public function __construct($sm)
40 $sm->get('Zend\Db\Adapter\Adapter');
41 $this->application = new ApplicationTable();
42 $this->listenerObject = new Listener;
45 public function phimail_connect($err)
47 return phimail_connect($err);
50 public function phimail_write($fp, $text)
52 phimail_write($fp, $text);
55 public function phimail_write_expect_OK($fp, $text)
57 return phimail_write_expect_OK($fp, $text);
60 public function phimail_close($fp)
62 phimail_close($fp);