Pimcore\Model\Tool\Targeting\Rule::getId PHP Метод

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

public getId ( ) : integer
Результат integer
    public function getId()
    {
        return $this->id;
    }

Usage Example

Пример #1
0
 public function ruleAddAction()
 {
     $target = new Targeting\Rule();
     $target->setName($this->getParam("name"));
     $target->save();
     $this->_helper->json(["success" => true, "id" => $target->getId()]);
 }