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()]);
 }