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/domain/classes/Model/Product/Plugin/Domain.php

42 lines
1.0 KiB
PHP
Raw Normal View History

<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class supports DOMAIN products
*
2013-03-19 22:35:19 +00:00
* @package Domain
* @category Plugins
* @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
*/
2013-03-22 20:37:04 +00:00
class Model_Product_Plugin_Domain extends Model_Product_Plugin {
// This model doesnt have a database table
public function __construct() {
}
// Our required abstract methods
public function admin_update() {}
public function feature_summary() {}
// @todo This is not used, but should be.
public function order_features() {
$output = '';
2012-11-09 23:13:57 +00:00
$t = ORM::factory('Domain_TLD');
// @todo Change this to a view.
$output = sprintf('<table class="box-full"><tr class="head"><td>%s</td></tr><tr><td>',_('Domains are available with the following suffixes'));
$output .= Table::display(
2012-08-01 12:43:33 +00:00
$t->list_active(),
25,
2012-08-01 12:43:33 +00:00
array(
'display("name")'=>array('label'=>'TLD Suffix'),
),
2012-08-01 12:43:33 +00:00
array(
));
$output .= '</td></tr></table>';
return $output;
}
}
?>