public function getId() { return $this->id; }
public function ruleAddAction() { $target = new Targeting\Rule(); $target->setName($this->getParam("name")); $target->save(); $this->_helper->json(["success" => true, "id" => $target->getId()]); }