I have an array of objects. I have verified that the data is in the object and array with var_dump, but when I pass the array of objects to another class, and try to access a property in the object, I get the above error message. I'm sure I'm doing something wrong, but I'm not sure what since OO php is new to me, as well as php in general. I'm more of a C#/C++ person. Any help would be greatly appreciated!

This is how I put the data in the object and array:

ViseUpload.php:


PHP Code:
require_once( "../classes/class.OLAPdatabase.php");
    require_once(
"class.ViseParameter.php");
 
    
$OLAPdb = new OLAPdatabase;
    
$ViseParameter NULL;
   
    for(
$i=;$i<count($_GET["ID"]) ;$i++){
       
$ID $_GET["ID"][$i];
       
$Desc $_GET["Desc"][$i];
       
$Yevaluation $_GET["Yevaluation"][$i];
       
$Mevaluation $_GET["Mevaluation"][$i];
       
$Cevaluation $_GET["Cevaluation"][$i];
       
$Kevaluation $_GET["Kevaluation"][$i];
       
$comment $_GET["comment"][$i];
   
       
$ViseParameter = new ViseParameter();
       
$ViseParameter->parameterID=$ID;
       
$ViseParameter->parameterDesc=$Desc;
       
$ViseParameter->Yevaluation=$Yevaluation;
       
$ViseParameter->Mevaluation=$Mevaluation;
       
$ViseParameter->Cevaluation=$Cevaluation;
       
$ViseParameter->Kevaluation=$Kevaluation;
       
$ViseParameter->Comments=$comment;
   
       
$arrViseParameters[$i] = $ViseParameter;
      
       
var_dump($ViseParameter);
      
       
var_dump($arrViseParameters);
      
       
var_dump($arrViseParameters[$i]);
    }
    
$OLAPdb->StoreViseData($arrViseParameters); 
My method below is where I'm having the error message:


class.OLAPdatabase.php:


PHP Code:
require_once("class.ViseParameter.php");

function 
StoreViseData($arr )      
   
//--------------------------:--------------------------------
   // Pass this function values to store in OLAP DB from visual evaluation
   // entry table.
   //----------------------------------------------------------
   
{
       echo 
"OLAP DB upload requested";
      
       foreach(
$arr as $tempObj)
       {
           
$ViseParameter = new ViseParameter();
           
$ViseParameter $tempObj;    //this used to be more direct from array but it was giving same err msg
           
$ID$ViseParameter->parameterID//this gives error message
           
var_dump($ID);
       }
      
      
//will send to DB next
   
// END - StoreViseData 
This is what my class.ViseParameter.php looks like:


PHP Code:
<?php 

class ViseParameter 

   var 
$parameterID null;
   var 
$parameterDesc null;
   var 
$Yevaluation null;
   var 
$Mevaluation null;
   var 
$Cevaluation null;
   var 
$Kevaluation null;
   var 
$Comments null;
  
   
//**********************************************************
   //                  -[ F_u_n_c_t_i_o_n_s ]-
   //**********************************************************
   
function __construct()
   { }  
// END - Constructor
   //**********************************************************
   
function __destruct()
   { }  
// END - Destructor
   //**********************************************************
  
?>