Ejemplo n.º 1
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $post
  * @param    array $errors
  * @return   string
  */
 function restorePOST()
 {
     $errors = POSTErrors::getErrorFor($this->getName(), $this->getAdditionalID());
     if ($errors !== null) {
         $this->setFilterError(implode("<br/>", $errors));
     }
     $post_data = POSTErrors::getPOSTData($this->getName(), $this->getAdditionalID());
     if (isset($post_data)) {
         ResultSetPool::set(t(new ResultSet())->f1("wselect[name=" . $this->getName() . "]  wselectoption[value=" . $post_data . "]")->set('selected', 1), ResultSetPool::SYSTEM_PRIORITY);
     }
 }
Ejemplo n.º 2
0
 private function manageData()
 {
     if ($this->data_object->hasDatasourceMethod()) {
         if (($v = $this->data_object->getData()) !== null) {
             foreach ($v as $rs) {
                 if ($rs instanceof ResultSet) {
                     ResultSetPool::set($rs, $this->getPriority());
                 }
             }
         }
     } else {
         DataObjectPool::set($this->data_object, $this->getPriority());
     }
 }