Unfinished activity ('quantified self') tracker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

weight.php 557B

123456789101112131415161718192021222324
  1. <?PHP
  2. class WeightSource implements Source {
  3. private $data = array();
  4. public function __construct() {
  5. require_once('/home/chris/websites/apps.md87.co.uk/weight/data.php');
  6. foreach ($data as $wk => $weight) {
  7. $time = strtotime('+' . $wk . ' weeks', 1190588400);
  8. $message = 'Recorded my <a href="http://apps.md87.co.uk/weight/">weight</a> as <strong>';
  9. $message .= $weight . 'kg</strong>';
  10. $this->data[] = new Event($time, $message);
  11. }
  12. }
  13. public function getData() {
  14. return $this->data;
  15. }
  16. }
  17. $_SOURCES[] =& new WeightSource();
  18. ?>