Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

tx_commerce_ordermailhooks Class Reference

List of all members.

Public Member Functions

 tx_commerce_ordermailhooks ()
 ordermoveSendMail ($mailcontent, $mailfromname, $mailfromaddress, $userMail, $bcc, &$orderdata, &$template)
 generateTemplatearray ($mailkind, $pid, $order_sys_language_uid)
 processOrdermails (&$orderdata, &$detaildata, $mailkind)
 moveOrders_preMoveOrder (&$orderdata, &$detaildata)
 moveOrders_postMoveOrder (&$orderdata, &$detaildata)
 makeAdressView ($addressArray, $subpartMarker)
 generateMail ($orderUid, $orderData)

Public Attributes

 $cObj
 $csConvObj
 $templateCode
 $templatePath
 $customermailadress
 $tablename
 $extConf

Constructor & Destructor Documentation

tx_commerce_ordermailhooks::tx_commerce_ordermailhooks  ) 
 

This is just a constructor to instanciate the backend library

Author:
Joerg Sprung <jsp@marketing-factory.de>


Member Function Documentation

tx_commerce_ordermailhooks::generateMail orderUid,
orderData
 

This Method generates a Mailcontent with $this->templatecode as Mailtemplate. First Line in Template represents the Mailsubject. The other required data can be queried from database by Parameters.

Parameters:
String $orderUID The uid for the specified Order
Array $orderData Contaning additional data like Customer UIDs.
Returns:
String The built Mailcontent
Since The first line of the mail is the Subject, trim the template

Hook for processing Marker Array Inspired by tt_news

Since:
21.01.2006

tx_commerce_ordermailhooks::generateTemplatearray mailkind,
pid,
order_sys_language_uid
 

Getting a template with all Templatenames in the Mailtemplaterecords according to the given mailkind and pid

Parameters:
Integer $mailkind 0 move in and 1 move out the Order in the Orderfolder
Integer $pid The PID of the order to move
Returns:
Array Array of templatenames found in Filelist

tx_commerce_ordermailhooks::makeAdressView addressArray,
subpartMarker
 

Renders on Adress in the template This Method will not replace the Subpart, you have to replace your subpart in your template by you own

Parameters:
Address Array (als Resultset from Select DB or Session)
Subpart Template subpart
Returns:
$content HTML-Content from the given Subpart.
Author:
Ingo Schmitt <is@marketing-factory.de>

tx_commerce_ordermailhooks::moveOrders_postMoveOrder &$  orderdata,
&$  detaildata
 

Initial method for hook that will be performed before the Order will be moved to another Orderstate

Parameters:
Array $orderdata Containing the orderdatea like UID and PID before moving
Array $dataildata Containing the detaildata to Order like order_id and CustomerUIDs
Returns:
void

tx_commerce_ordermailhooks::moveOrders_preMoveOrder &$  orderdata,
&$  detaildata
 

Initial method for hook that will be performed after the Order will be moved to another Orderstate

Parameters:
Array $orderdata Containing the orderdatea like UID and PID after moving
Array $dataildata Containing the detaildata to Order like order_id and CustomerUIDs
Returns:
void

tx_commerce_ordermailhooks::ordermoveSendMail mailcontent,
mailfromname,
mailfromaddress,
userMail,
bcc,
&$  orderdata,
&$  template
 

This method converts an sends mails.

Parameters:
String $mailcontent Containing the Mailcontent with subject in Line1^
String $mailfromname The Sending E-Mailname
String $mailfromaddress The Sending E-Mailadress
String $userMail Mailadress of Customer
Returns:
return of t3lib_div::plainMailEncoded
Since:
2005 12th November Noved to plainMailEncoded
Check if charset ist set by TS Otherwise set to default Charset Checck if mailencoding ist set otherwise set to 8bit

Convert Text to charset

tx_commerce_ordermailhooks::processOrdermails &$  orderdata,
&$  detaildata,
mailkind
 

This method will be used by the initial methods before and after the Order will be moved to another Orderstate

Parameters:
Array $orderdata Containing the orderdatea like UID and PID
Array $dataildata Containing the detaildata to Order like order_id and CustomerUIDs
[type] $mailkind: ...
Returns:
void


Member Data Documentation

tx_commerce_ordermailhooks::$cObj
 

tx_commerce_ordermailhooks::$csConvObj
 

tx_commerce_ordermailhooks::$customermailadress
 

tx_commerce_ordermailhooks::$extConf
 

tx_commerce_ordermailhooks::$tablename
 

tx_commerce_ordermailhooks::$templateCode
 

tx_commerce_ordermailhooks::$templatePath
 


The documentation for this class was generated from the following file:
Generated on Sun Jan 13 23:12:23 2008 for tx_commerce by  doxygen 1.4.4