Exemplo n.º 1
0
 function addOwnerPersonRPTOP($rptopID, $ownerID, $personIDArray)
 {
     $owner = new Owner();
     $owner->selectRecord($ownerID);
     $ctr = 0;
     //if ()
     foreach ($personIDArray as $key => $value) {
         //echo $value."<br>";
         $owner->deleteOwnerPerson($value);
         $owner->insertOwnerPerson($ownerID, $value);
         $rptop = new RPTOP();
         $rptop->selectRecordForList($rptopID);
         $year = $rptop->getTaxableYear();
         $tdIDArray = $this->getTDListOf($value, "Person", $year);
         foreach ($tdIDArray as $tdKey => $tdValue) {
             //echo $tdValue."<br>";
             $rptop->insertRptopTd($rptopID, $tdValue);
             $ctr++;
         }
         unset($rptop);
     }
     unset($owner);
     $ret = $ctr;
     return $ret;
 }