Advertisement
ihris

litlfred

Mar 2nd, 2011
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. $cost = 0;
  2. foreach ( array('lodging','local_transport','transport','other') as $cost) {
  3.     $costField = $this->getField($cost);
  4.     if (!$costField instanceof I2CE_FormField_INT) {
  5.        I2CE::raiseError("Field $cost is not an INT");
  6.        continue;
  7.     }
  8.     $cost += $this->inflateCosts($year_offset,max(0,$costField->getValue());
  9.  
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement