original_string: public function postInit()
      {
          foreach ($this->elements as $x => $field) {
              if ($field instanceof Form_Field) {
                  $field->set($this->recall($x));
  
                  if ($field->no_save || !$field->get()) {
                      continue;
                  }
  
                  // also apply the condition
                  if ($this->view->model && $this->view->model->hasElement($x)) {
  
                      // take advantage of field normalization
                      $this->view->model->addCondition($x, $field->get());
                  }
              }
          }
  
          // call applyFilter hook if such exist, pass model of associated view as parameter
          $this->hook('applyFilter', array($this->view->model));
      }
code: public function postInit()
      {
          foreach ($this->elements as $x => $field) {
              if ($field instanceof Form_Field) {
                  $field->set($this->recall($x));
  
                  if ($field->no_save || !$field->get()) {
                      continue;
                  }
  
                  // also apply the condition
                  if ($this->view->model && $this->view->model->hasElement($x)) {
  
                      // take advantage of field normalization
                      $this->view->model->addCondition($x, $field->get());
                  }
              }
          }
  
          // call applyFilter hook if such exist, pass model of associated view as parameter
          $this->hook('applyFilter', array($this->view->model));
      }
code_tokens: public function postInit ( ) { foreach ( $ this -> elements as $ x => $ field ) { if ( $ field instanceof Form_Field ) { $ field -> set ( $ this -> recall ( $ x ) ) ; if ( $ field -> no_save || ! $ field -> get ( ) ) { continue ; } // also apply the condition if ( $ this -> view -> model && $ this -> view -> model -> hasElement ( $ x ) ) { // take advantage of field normalization $ this -> view -> model -> addCondition ( $ x , $ field -> get ( ) ) ; } } } // call applyFilter hook if such exist, pass model of associated view as parameter $ this -> hook ( 'applyFilter' , array ( $ this -> view -> model ) ) ; }
docstring: Remembers values and uses them as condition.
docstring_tokens: Remembers values and uses them as condition .