<?php public function __construct() {
$args = func_get_args();
$argsStr = '';
foreach ($args as $arg) {
$argsStr .= '_' . gettype($arg);
}
if (method_exists($this, $constructor = '__construct' . $argsStr))
call_user_func_array(array($this, $constructor), $args);
else
throw new Exception('NO CONSTRUCTOR: ' . get_class() . $constructor, NULL, NULL);
}
public function __construct_integer($a) {}
public function __construct_string($a) {}
public function __construct_integer_string($a, $b) {}
public function __construct_string_integer($a, $b) {} ?>
<?php namespace Application\Model; use Zend\Mail\Message; use Zend\Mime\Message as MimeMessage; use Zend\Mime\Part as MimePart; use Zend\Mail\Transport\Sendmail as SendmailTransport; use Zend\Mail\Transport\Smtp as SmtpTransport; use Zend\Mail\Transport\SmtpOptions; use Zend\View\Renderer\PhpRenderer; use Zend\View\Resolver\TemplatePathStack; use Zend\View\Model\ViewModel; use Zend\View\Model\ModelInterface; class ApiEmail extends ApiInterface { protected $From = "XXXXX@gmail.com"; protected $FromName = "XXXX"; protected $To = "" ; protected $Subject = "" ; protected $Body = "" ; protected $Cc = "XXXXXX@gmail.com"; protected $Bcc = "XXXXX@gmail.com" ; protected $ReplyTo = "XXXX@gmail.com" ; protected $Sender = "" ; protected $Encoding = "UTF-8" ; protected $MESSAGE ; // getter setter ...
Comments
Post a Comment