Pluf Framework

Pluf Framework Commit Details


Date:2008-11-27 02:47:20 (16 years 5 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:9eed1bd5e4314d77ccef3834c1c3f34ff4e89fce
Parents: 0c4e9ec58d47da453a5789e38a27fbe14de75a07
Message:Changed to allow post failure cleaning of a form.

Changes:

File differences

src/Pluf/Form.php
137137
138138
139139
140
140141
141142
142143
......
156157
157158
158159
160
161
162
163
164
165
166
167
168
169
170
159171
160172
161173
            return true;
        }
        // as some errors, we do not have cleaned data available.
        $this->failed();
        $this->cleaned_data = array();
        $this->is_valid = false;
        return false;
    }
    /**
     * Method just called after the validation if the validation
     * failed.  This can be used to remove uploaded
     * files. $this->['cleaned_data'] will be available but of course
     * not fully populated and with possible garbage due to the error.
     *
     */
    public function failed()
    {
    }
    /**
     * Get initial data for a given field.
     *
     * @param string Field name.

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.16412s using 13 queries.