Airship\Cabin\Bridge\Blueprint\Blog::editTag PHP Метод

editTag() публичный Метод

Rename a tag
public editTag ( integer $tagId, array $post ) : boolean
$tagId integer
$post array
Результат boolean
    public function editTag(int $tagId, array $post) : bool
    {
        $this->db->beginTransaction();
        $this->db->update('hull_blog_tags', ['name' => $post['name']], ['tagid' => $tagId]);
        return $this->db->commit();
    }

Usage Example

Пример #1
0
 /**
  * @param int $tagId
  * @param array $post
  * @return bool
  */
 protected function processEditTag(int $tagId, array $post) : bool
 {
     return $this->blog->editTag($tagId, $post);
 }