Pimcore\Model\Element\Note::setType PHP Метод

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

public setType ( $type )
$type
    public function setType($type)
    {
        $this->type = $type;
        return $this;
    }

Usage Example

Пример #1
0
 public function noteAddAction()
 {
     $this->checkPermission("notes_events");
     $note = new Element\Note();
     $note->setCid((int) $this->getParam("cid"));
     $note->setCtype($this->getParam("ctype"));
     $note->setDate(time());
     $note->setTitle($this->getParam("title"));
     $note->setDescription($this->getParam("description"));
     $note->setType($this->getParam("type"));
     $note->save();
     $this->_helper->json(["success" => true]);
 }
All Usage Examples Of Pimcore\Model\Element\Note::setType