<?php class CreateAds extends CallBackhandler { public static $key = "createAds"; private $message = "CREATING ADS"; private $db; function init(){ } function onSetParent(){ } function execute(){ $word = $this->data; $this->db = new CreateAdsDB($this->getParent()->getTG()); $dataParts = explode("-",$this->data); $adResult = $this->getDB()->insertAd($dataParts[0], $dataParts[1]); $this->getTG()->sendMessage($adResult,$this->getTG()->chat_id); } private function getDB(): CreateAdsDB { return $this->db; } public function getParent(): CallbackService { return parent::getParent(); } public function getTG() : TranslateGerman { return parent::getSM(); } } ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
photo | Folder | 2755 |
|
|
voice | Folder | 2755 |
|
|
word-examples | Folder | 2755 |
|
|
AbstractCallbackHandler.class.php | File | 671 B | 0755 |
|
CreateAdsCBHandler.class.php | File | 789 B | 0755 |
|
CreateAdsDB.php | File | 932 B | 0644 |
|