save() public method

public save ( )
Exemplo n.º 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()]);
 }