$vps = $r->new_vps('dummy-order.com', 'centos5.64', 'EU2B', array('billing_oid' => $billing_method->billing_oid, 'memory_mb' => 256));
print_pre($vps);
close_div();
/**/
/**
* Testing vps->restart 
**********************/
open_div('Testing vps->reboot', 'reboot_vps');
$reboot_info = $vps->reboot();
print_pre($reboot_info);
close_div();
/**/
/**
* Testing vps->power_cycle 
***************************/
open_div('Testing vps->power_cycle', 'powercycle');
$cycle_info = $vps->power_cycle();
print_pre($cycle_info);
close_div();
/**/
/**
* Testing vps->destroy 
**********************/
open_div('Testing vps->destroy', 'destroy');
$destroy_info = $vps->destroy();
print_pre($destroy_info);
close_div();
/**/
?>
	</body>                                                                 
</html>
Example #2
0
 /**
  * Creates a HTML div with a content inside.
  *
  * @param array $options
  * @param       $content
  *
  * @return string
  */
 function create_div(array $options = array(), $content)
 {
     return open_div($options) . $content . close_div();
 }
Example #3
0
 /**
  * Opens a div using Foundation row as class.
  *
  * @param bool $error is set to true when a validation error occurs.
  * @param bool $prefixed
  * @param bool $postfixed
  *
  * @return string
  */
 protected function openRow($error = false, $prefixed = false, $postfixed = false)
 {
     $attr['class'] = 'row';
     if ($error === true) {
         array_add_to_key($attr, 'class', 'error');
     }
     if ($prefixed === true || $postfixed === true) {
         array_add_to_key($attr, 'class', 'collapse');
     }
     return open_div(array('class' => $attr['class']));
 }