Ejemplo n.º 1
0
 /**
  * Visit a form.
  *
  * @param T_Form_Container $node
  */
 function visitFormContainer(T_Form_Container $node)
 {
     foreach ($node->getActions() as $a) {
         if ($a->isPresent()) {
             $this->data[$a->getFieldname()] = 1;
         }
     }
 }
Ejemplo n.º 2
0
 /**
  * Gets all form checking hidden inputs.
  *
  * @param T_Form_Container $form
  * @return array
  */
 function getActionSaltTimeoutAndLockArray(T_Form_Container $form)
 {
     $alias = $form->getAlias();
     $salt = $form->search("{$alias}_salt");
     $timeout = $form->search("{$alias}_timeout");
     $lock = $form->search("{$alias}_thread_lock");
     $data = array($salt->getFieldname() => $salt->getFieldValue(), $salt->getChecksumFieldname() => $salt->getChecksumFieldValue(), $timeout->getFieldname() => $timeout->getFieldValue(), $timeout->getChecksumFieldname() => $timeout->getChecksumFieldValue());
     if ($lock) {
         $data[$lock->getFieldname()] = $lock->getFieldValue();
         $data[$lock->getChecksumFieldname()] = $lock->getChecksumFieldValue();
     }
     $actions = $form->getActions();
     $button = reset($actions);
     $data[$button->getFieldname()] = '';
     return $data;
 }