centralM
[ class tree: centralM ] [ index: centralM ] [ all elements ]

Class: physicalvolActions

Source Location: /modules/physicalvol/actions/actions.class.php

Class Overview

sfActions
   |
   --physicalvolActions

physical volume actions controller


Methods



Class Details

[line 16]
physical volume actions controller



[ Top ]


Class Methods


method executeJsonGetAllocatable [line 136]

array executeJsonGetAllocatable( $request)

Returns pre-formated data for Extjs itemselector with physical volumes allocatable

Request must be Ajax

$request may contain the following keys:

  • nid: nid (virtAgent node ID)




Tags:

return:  json array('total'=>num elems, 'data'=>array('value'=>value,'name'=>name))
access:  public


Parameters:

sfWebRequest   $request  

[ Top ]

method executeJsonInit [line 27]

array executeJsonInit( $request)

Initializes a physical device

$request may contain the following keys:

  • pv: json encoded object containing the db mapping fields=>values




Tags:

return:  json array(success=>true)
access:  public


Parameters:

sfWebRequest   $request  

[ Top ]

method executeJsonPhydiskTree [line 60]

array executeJsonPhydiskTree( $request)

Return pre-formatted data for tree-column extjs

$request may contain the following keys:

  • nid: nid (virtAgent node ID)




Tags:

return:  json array
access:  public


Parameters:

sfWebRequest   $request  

[ Top ]

method executeJsonUninit [line 192]

array executeJsonUninit( $request)

Uninitializes the physical volume

Unsets the physical volume info. The request must be an Ajax request

$request may contain the following keys:

  • id: physical volume ID




Tags:

return:  json array(success=>true)
access:  public


Parameters:

sfWebRequest   $request  

[ Top ]

method executeSoapUpdate [line 254]

array executeSoapUpdate( $request)

Used to process soap requests => updateVirtAgentDevices

Updates physical volume/device info sent by virt Agent The request should be made throught soapapi

Replies with succcess

$request may contain the following keys:

  • uid: uid (virtAgent sending request uid)
  • devs (object containing devices info)




Tags:

return:  array(success=>true)
access:  public


Parameters:

sfWebRequest   $request  

[ Top ]

method setJsonError [line 230]

array setJsonError( string $info, [int $statusCode = 400])

Used to return errors messages



Tags:

return:  json array
access:  protected


Parameters:

string   $info   error message
int   $statusCode   HTTP STATUS CODE

[ Top ]


Documentation generated on Mon, 29 Jun 2009 15:10:07 +0100 by phpDocumentor 1.4.2