[TYPO3-commerce] $this->pi_getLL()

Bas van der Togt bas.vander.togt at efocus.nl
Thu Mar 20 12:06:49 CET 2008


hello,

I build a hook to add some markers to the usermail.
The markers are replaced but now i want to use the $this->pi_getLL() 
function. But this is not working with the the code below because i 
don't get the $parent with the ProcessMarker(). Does anybody know how to 
solve this problem?

kind regards,
Bas

class tx_efprepaymentmail extends tslib_pibase {
	
	function ProcessMarker($markerArray,$this) {
		$this->initLL($parent);
		
		$markerArray['###ATTENTION###'] = $this->pi_getLL('attention');
		$markerArray['###BANKACCOUNT###'] = $this->pi_getLL('bankaccount');
		$markerArray['###TO###'] = $this->pi_getLL('to');
		$markerArray['###CITY###'] = $this->pi_getLL('city');
		$markerArray['###ABROAD###'] = $this->pi_getLL('abroad');
		$markerArray['###IBAN###'] = $this->pi_getLL('iban');
		$markerArray['###BIC###'] = $this->pi_getLL('bic');
						
		return $markerArray;
	}
	
	function initLL(&$parent) {
		$basePath = t3lib_extMgm::extPath('ef_prepayment').'lib/locallang.xml';
		$this->LOCAL_LANG = t3lib_div::readLLfile($basePath, $parent->LLkey);
		if ($parent->altLLkey)    {
			$tempLOCAL_LANG = t3lib_div::readLLfile($basePath,$parent->altLLkey);
			$this->LOCAL_LANG = array_merge(is_array($this->LOCAL_LANG) ? 
$this->LOCAL_LANG : array(),$tempLOCAL_LANG);
		}
	}
}	


More information about the TYPO3-project-commerce mailing list