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/application/classes/Model/Country.php

24 lines
595 B
PHP
Raw Normal View History

2010-11-29 22:41:08 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* OSB Country Model
*
* @package OSB
2010-11-29 22:41:08 +00:00
* @category Models
* @author Deon George
2013-03-19 22:35:19 +00:00
* @copyright (c) 2009-2013 Open Source Billing
* @license http://dev.osbill.net/license.html
2010-11-29 22:41:08 +00:00
*/
class Model_Country extends ORM_OSB {
2013-05-10 10:48:10 +00:00
protected $_has_one = array(
'currency'=>array('far_key'=>'id'),
);
protected $_form = array('id'=>'id','value'=>'name');
2013-05-10 10:48:10 +00:00
public static function icon() {
return HTML::image(sprintf('media/img/country/%s.png',strtolower($this->two_code)),array('alt'=>$this->currency->symbol));
2012-07-30 06:01:30 +00:00
}
2010-11-29 22:41:08 +00:00
}
?>