protected static function saveDb($data) { $init = self::$init; self::convertData($data); self::getQuery(); return DB::query(self::$query); }
public function save() { DB::query("\n\t\t\tINSERT INTO chat (author, gravatar, text)\n\t\t\tVALUES (\n\t\t\t\t'" . DB::esc($this->author) . "',\n\t\t\t\t'" . DB::esc($this->gravatar) . "',\n\t\t\t\t'" . DB::esc($this->text) . "'\n\t\t)"); return DB::getMySQLiObject(); }