Fixes to OSB to work with KH 3.3
This commit is contained in:
54
modules/domain/classes/Domain.php
Normal file
54
modules/domain/classes/Domain.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* This class looks after DOMAIN NAME products
|
||||
*
|
||||
* @package OSB
|
||||
* @subpackage Product
|
||||
* @category Helpers
|
||||
* @author Deon George
|
||||
* @copyright (c) 2010 Deon George
|
||||
* @license http://dev.leenooks.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)
|
||||
return is_array($o->registrar_ns) ? implode(',',$o->registrar_ns) : '>Invalid<';
|
||||
else
|
||||
return is_array($o->domain_registrar->whitelabel_ns) ? implode(',',$o->domain_registrar->whitelabel_ns) : '>Unknown<';
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user