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/Domain.php

54 lines
1.2 KiB
PHP
Raw Permalink Normal View History

<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class looks after DOMAIN NAME products
*
2013-03-19 22:35:19 +00:00
* @package Domain
* @category Helpers
* @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
*/
class DOMAIN {
/**
* Return an instance of this class
*
* @return ADSL
*/
public static function instance() {
return new DOMAIN;
}
public function product_view($data) {
}
public function contract_view($data,$price_base,$price_setup) {
}
/**
* Collect information for the cart
*/
public function product_cart() {
$output = '';
$output .= '<script type="text/javascript">//<![CDATA[
$(document).ready(function() {
$("input[type=submit]").attr("disabled","disabled");
});
//]]></script>
';
$output .= View::factory('domain/cart');
return $output;
}
public static function NS(Model_Service_Plugin_Domain $o) {
if ($o->registrar_ns)
2011-12-20 05:46:10 +00:00
return is_array($o->registrar_ns) ? implode(',',$o->registrar_ns) : '&gt;Invalid&lt;';
else
2011-12-20 05:46:10 +00:00
return is_array($o->domain_registrar->whitelabel_ns) ? implode(',',$o->domain_registrar->whitelabel_ns) : '&gt;Unknown&lt;';
}
}
?>