public static function log($str) { $n = new LangModel(); $n->lang_id = $str; $n->lang_ts = leap_mysqldate(); $n->save(); }