26 lines
611 B
PHP
26 lines
611 B
PHP
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
/**
|
|
* This is class renders Item Type responses and forms.
|
|
*
|
|
* @package OSB
|
|
* @category Helpers
|
|
* @author Deon George
|
|
* @copyright (c) 2009-2013 Open Source Billing
|
|
* @license http://dev.osbill.net/license.html
|
|
*/
|
|
class StaticList_ItemType extends StaticList {
|
|
protected function _table() {
|
|
return ORM::factory('Invoice_Item')->_types();
|
|
}
|
|
|
|
public static function get($value) {
|
|
return self::factory()->_get($value);
|
|
}
|
|
|
|
public static function index($key) {
|
|
return array_search($key,self::factory()->table());
|
|
}
|
|
}
|
|
?>
|