7.1

Table Of Contents
//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");
}
getString: Returns the given string from the language strings.
$this->getString(cNo);
$this->setSubject("$this->getString(cYourAccountDetails)")
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))
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); ?>.
E-mail - Managing E-mail Templates
Objectif Lune Inc. © 2010 144