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); }
function __construct($ID) { parent::__construct($ID); $this->setParser("EinkaufszettelTime", "Util::CLDateTimeParser"); $this->setParser("EinkaufszettelBoughtTime", "Util::CLDateTimeParser"); }
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(); }