Example #1
0
 /**
  * Create a new disksafe on the R1soft server, see notes from createHost()
  *
  * @param string $hostID
  * @param int $compressionLevel should be 0 <= x <= 9
  * @param double $maxFreeSpace amount of free space allowed before defragmentation
  *
  * @return R1soft_Disksafe the newly create object
  */
 public function createDisksafe() {
   return R1soft_Disksafe::create( $this, func_get_args() );
 }
Example #2
0
 /**
  * Create a new disksafe for this host
  *
  * @param int $compressionLevel
  * @param double $maxFreeSpace
  * @return R1soft_Disksafe the new disksafe object
  */
 public function addDisksafe( $compressionLevel, $maxFreeSpace ) {
   $this->_checkValid();
   return R1soft_Disksafe::create( $this->_apiConnection,
     array( $this->getID(), $compressionLevel, $maxFreeSpace ) );
 }