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/StaticList/ItemType.php

26 lines
611 B
PHP
Raw Normal View History

2013-06-13 13:35:19 +00:00
<?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() {
2016-08-03 04:00:51 +00:00
return ORM::factory('Invoice_Item')->_types();
2013-06-13 13:35:19 +00:00
}
public static function get($value) {
return self::factory()->_get($value);
2013-06-13 13:35:19 +00:00
}
public static function index($key) {
return array_search($key,self::factory()->table());
2013-06-13 13:35:19 +00:00
}
}
?>