save() 공개 메소드

public save ( )
예제 #1
0
 public function addAction()
 {
     $tag = new Pimcore\Model\Element\Tag();
     $tag->setName(strip_tags($this->getParam('text')));
     $tag->setParentId(intval($this->getParam('parentId')));
     $tag->save();
     $this->_helper->json(['success' => true, 'id' => $tag->getId()]);
 }