public function bindListComments() { $SQL = "SELECT * FROM qs_comments WHERE com_modul = '" . $this->Tedcom_tabelle->Text . "' AND com_id = " . $this->Tedcom_id->Text; //TODO : Hier muss noch die einschraenkung beherzigt werden... $this->CCKommentarListe->DataSource = CommentRecord::finder()->findAllBySQL($SQL); $this->CCKommentarListe->dataBind(); }
public function CCOMDeleteButtonClicked($sender, $param) { $item = $sender->CommandParameter; $Record = CommentRecord::finder()->findByidqs_comments($item); $Record->delete(); $this->bindListComment(); }
function getCommentData() { return CommentRecord::finder()->findAllByPage($this->getCurrentPagePath()); }