Exemplo n.º 1
0
 public static function save($params)
 {
     return DB::Getinstance()->Insert("scheduledposts", $params);
 }
Exemplo n.º 2
0
 public static function updatePost($params, $post)
 {
     $user = new user();
     return DB::Getinstance()->Query("UPDATE posts set `content` = ? WHERE id = ? AND userid = ? ", array(json_encode($params), $post, $user->data()->id));
 }