Example #1
0
 function saveMe($checkUserData = true, $output = false)
 {
     $O = new Einkaufszettel($this->getID());
     if ($O->A("EinkaufszettelBought") == "0" and $this->A("EinkaufszettelBought") == "1") {
         $this->changeA("EinkaufszettelBoughtTime", $this->hasParsers ? Util::CLDateTimeParser(time()) : time());
     }
     if ($O->A("EinkaufszettelBought") == "1" and $this->A("EinkaufszettelBought") == "0") {
         $this->changeA("EinkaufszettelBoughtTime", "");
     }
     parent::saveMe($checkUserData, $output);
 }
Example #2
0
 function __construct($ID)
 {
     parent::__construct($ID);
     $this->setParser("EinkaufszettelTime", "Util::CLDateTimeParser");
     $this->setParser("EinkaufszettelBoughtTime", "Util::CLDateTimeParser");
 }
Example #3
0
 public static function setBought($args)
 {
     $E = new Einkaufszettel($args["P0"]);
     $E->setBought();
 }
 public function boughtItem($EinkaufszettelID)
 {
     $E = new Einkaufszettel($EinkaufszettelID);
     $E->setBought();
     echo $this->getListTable();
 }