Example #1
0
 /**
  * Set status of tag (0 = inactive; 1 = active)
  *
  * @param id, status
  * @return str
  */
 public function setStatusTag($env, $domain, $id, $status)
 {
     $str = '';
     $tag = new Tag();
     if ($tag->updateItem($id, array('status' => $status))) {
         if ($status == 0) {
             $str = "Đã chuyển sang trạng thái inactive thành công!";
         } else {
             $str = "Đã chuyển sang trạng thái active thành công!";
         }
     }
     return $str;
 }