コード例 #1
0
ファイル: FormCheckbox.php プロジェクト: Soneritics/Framework
 /**
  * Set the value for this object from a previously submitted form.
  * @param RequestAbstract $request
  */
 protected function setValueFrom(RequestAbstract $request)
 {
     if ($request->get($this->getName()) !== null) {
         $this->setParam('checked', 'checked');
     }
     $this->setValue($request->get($this->getName()));
 }
コード例 #2
0
 /**
  * Set the value for this object from a previously submitted form.
  *
  * @param RequestAbstract $request
  */
 protected function setValueFrom(RequestAbstract $request)
 {
     $this->setValue($request->get($this->getName()));
 }