Exemplo n.º 1
0
 /**
  * Retrieves the data associated with this element from the ZRequest object.
  *
  * @returns void
  * @todo I don't like getting from both get and post,
  * Options include getting parent until a form is identified
  * Potentially pass bucket in as well
  * I don't like searching up, because for other controls you may not
  * be contained withing a form
  */
 public function loadRequestData()
 {
     $id = $this->name ? $this->name : $this->getID();
     $value = ZRequest::get($id);
     if (!$value) {
         $value = ZRequest::post($id);
     }
     if ($value) {
         $this->setValue($value);
     }
     return parent::loadRequestData();
 }