This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/email/classes/Model/Email/Log.php

39 lines
973 B
PHP
Raw Normal View History

2011-08-16 02:27:19 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class supports Email Logging
*
2013-03-19 22:35:19 +00:00
* @package Email
2011-08-16 02:27:19 +00:00
* @category Models
* @author Deon George
2013-03-19 22:35:19 +00:00
* @copyright (c) 2009-2013 Open Source Billing
2011-08-16 02:27:19 +00:00
* @license http://dev.osbill.net/license.html
*/
class Model_Email_Log extends ORM_OSB {
2012-01-01 09:41:42 +00:00
// Email Log doesnt use the update column
protected $_updated_column = FALSE;
protected $_belongs_to = array(
'account'=>array('far_key'=>'id'),
'email_template_translate'=>array('far_key'=>'id'),
);
protected $_sorting = array(
'id'=>'DESC',
);
2011-08-16 02:27:19 +00:00
protected $_display_filters = array(
'date_orig'=>array(
array('Config::datetime',array(':value')),
),
);
public function translate_resolve($column) {
2012-01-01 09:41:42 +00:00
if (! $this->data OR ! ($this->email_template_translate->variables($column)))
return $this->email_template_translate->display($column);
else
return $this->email_template_translate->rresolve($this->data,$column);
}
2011-08-16 02:27:19 +00:00
}
?>