/**
  *
  */
 public function mergesortAction()
 {
     $this->view->data = preg_split('/[^\\d]+/', $this->_getParam('data', array()));
     $form = new Zupal_Fastform_Form('data', 'data', '/administer/test/mergesort');
     $form->set_field(new Zupal_Fastform_Field_Text('data', 'Data', join(',', $this->view->data), array('rows' => 5), $form));
     $this->view->data_form = $form;
 }
 public function __construct($pGroup, $pGame = NULL)
 {
     $pGroup = Zupal_Domain_Abstract::_as($pGroup, 'Ultimatum_Model_Ultgroups');
     if ($pGame) {
         $pGame = Zupal_Domain_Abstract::_as($pGame, 'Ultimatum_Model_Ultgames');
     } else {
         $pGame = Ultimatum_Model_Ultgames::get_active();
     }
     parent::_load();
     $this->game_id->set_value($pGame->identity());
     $this->group_id->set_value($pGroup->identity());
     $this->set_label('Change size of ' . $pGroup);
 }
Example #3
0
 /**
  * Note -- the construtors load_field_values call is an initializing action --
  * domain to form.
  * this is an update action -- data to domain and form.
  * Overload this method to re-map fields whose name is divergent
  * between the form and the domain.
  * 
  * @param array $pFields
  */
 public function load_field_values($pFields)
 {
     parent::load_field_values($pFields);
     $this->get_domain()->set_fields($pFields);
 }