Esempio n. 1
0
 public static function CreateOrFind($tagName)
 {
     $tagService = new TagService();
     $tag = $tagService->getTagByName($tagName);
     if (!$tag) {
         $tag = new Models\Tag();
         $tag->name = $tagName;
         $tag->save();
     }
     return $tag;
 }