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));
    }
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));
    }
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 ) ) ; }
Remembers values and uses them as condition.
Remembers values and uses them as condition .