public function setup()
 {
     if (!$this->getOption('member') instanceof Member) {
         throw new LogicException('opMemberPointForm needs member object by option');
     }
     $this->setWidget('point', new sfWidgetFormInput());
     $this->setValidator('point', new sfValidatorInteger());
     $this->setDefault('point', opPointUtil::getPoint($this->getOption('member')->getId()));
     $this->widgetSchema->setNameFormat('member[%s]');
 }
 /**
  * executes point box
  *
  * @param sfWebRequest $request
  */
 public function executePointBox(sfWebRequest $request)
 {
     $this->point = opPointUtil::getPoint($request->getParameter('id', null));
 }