Exemple #1
0
 /**
  * Create Tag service
  *
  * @param $tagName
  * @param int $status
  * @return tagModel
  */
 public function createTag($tagName, $status = KACANA_TAG_STATUS_ACTIVE)
 {
     $tag = new tagModel();
     $data = ['name' => $tagName, 'status' => $status];
     $result = $tag->createItem($data);
     return $result;
 }