7.1

Table Of Contents
l setCharset: This functions sets the charset of the message body.
$this->setCharset("UTF-8"); (default)
$this->setCharset("iso-8859-1")
l addAttachment: Adds an attachment from a path on the filesystem.
$this->addAttachment("application/pdf","sample1.pdf");
$this->addAttachment("application/pdf","/files/jobs/1/8/8_lr.pdf");
$this->addAttachment("application/pdf","/files/jobs/$this->companyid/$this->jobs[0]/$this-> jobs [0] _lr.pdf");
//Attach the softproof pdf of each document/job to the message:
foreach ($this->jobs as $key => $job) {
$id = $job[id];
$this->addAttachment("application/pdf","/files/jobs/$this->companyid/ . $id . “/” . $id . _lr.pdf");
}
l getString: Returns the given string from the language strings.
$this->getString(cNo);
$this->setSubject("$this->getString(cYourAccountDetails)")
l replaceString: Replaces the value of a string based on a match in the second parameter (array). The result is
returned.
$this->replaceString($this->rush, array(0=>$this->getString(cNo), 1=>$this->getString(cYes))
l skipEmpty: Use this function to skip a specific value in case it is empty. The second parameter is optional and defines
the string that will be inserted when the input string is not empty. If this parameter is omitted the input string will be
returned.
<?php echo $this->skipEmpty($this->shippingaddress2,$this->shippingaddress2 . "<br />"); ?>
<?php echo $this->skipEmpty($this->shippingaddress2); ?>.
©2010 Objectif Lune Inc - 155 -