StorageDeviceHandler

This class contains the functions to

Retrieve Storage Device(s)

api
package simPROAPI
subpackage Inventory
author Nathan Muir
version 2011-07-18
todo verify the permissions required for retrieving storage devices
todo perhaps add to this or the employee object "get my storage device id" function.

 Methods

StorageDeviceInsert

Insert(int $CompanyID, array $StorageDeviceDetails) : int
Static
<?php
$StorageDeviceDetails = array(
   "StorageDeviceName"=>"",
   "DefaultDevice"=>false
   );
?>

Parameters

$CompanyID

int

the company id

$StorageDeviceDetails

array

an associative array of the storage device information.

Returns

int

StorageDeviceRetrieve

Retrieve(int $CompanyID, int $StorageDeviceID) : array
Static

This function retrieves details for a specific details id

uses \StorageDeviceHandler::RetrieveList()

Parameters

$CompanyID

int

the Company ID. In single company builds, this is 0.

$StorageDeviceID

int

the Storage Device id to retrieve details for

Returns

array

StorageDeviceRetrieveList

RetrieveList(int $CompanyID, array $StorageDeviceIDs) : array
Static

This function retrieves details on the provided list of Storage Device ids

used_by \StorageDeviceHandler::Search()
used_by \StorageDeviceHandler::Retrieve()

Parameters

$CompanyID

int

the Company ID. In single company builds, this is 0.

$StorageDeviceIDs

array

the Storage Device ids to retrieve details for

Returns

array