Source for file WeeklyCompensation.php

Documentation is available at WeeklyCompensation.php

  1. <?php
  2.  
  3. require_once Fixture::INCLUDE_DIR . DIRECTORY_SEPARATOR . 'ColumnFixture.php';
  4.  
  5. require_once "WeeklyTimesheet.php";
  6.  
  7. class WeeklyCompensation extends ColumnFixture {
  8. public $StandardHoras = 0;
  9. public $VacacionesHoras = 0;
  10. public $SalarioHora = 0;
  11. public function Pago() {
  12. $timesheet = new WeeklyTimesheet($this->StandardHoras, $this->VacacionesHoras);
  13. return $timesheet->calculatePay($this->SalarioHora);
  14. }
  15. public function TotalHoras() {
  16. $timesheet = new WeeklyTimesheet($this->StandardHoras, $this->VacacionesHoras);
  17. $timesheet->calculatePay($this->SalarioHora);
  18. return $timesheet->getTotalHours();
  19. }
  20. public $typeDict = array(
  21. "StandardHoras" => "integer",
  22. "VacacionesHoras" => "integer",
  23. "SalarioHora" => "integer",
  24. "Pago" => "integer",
  25. "TotalHoras" => "integer"
  26. );
  27. }
  28.  
  29. ?>

Documentation generated on Sun, 02 Apr 2006 16:01:07 +0200 by phpDocumentor 1.3.0RC5