Added Node Summary

This commit is contained in:
Deon George
2011-05-30 19:27:08 +10:00
parent d3b97ae485
commit d29b29fa07
13 changed files with 305 additions and 62 deletions

View File

@@ -32,6 +32,7 @@ class Model_FILESPACE extends ORMTSM {
return $this->CAPACITY * ($this->PCT_UTIL/100);
}
// $dtype must be Bkup or Arch
public function storagepools($dtype) {
$pool = array();
@@ -40,10 +41,9 @@ class Model_FILESPACE extends ORMTSM {
->where('TYPE','=',$dtype)
->group_by('STGPOOL_NAME')
->order_by('STGPOOL_NAME')
->find_all() as $oo) {
->find_all() as $oo)
array_push($pool,$oo->STGPOOL);
}
return $pool;
}