Ratings::validateForm PHP Method

validateForm() private method

private validateForm ( )
    private function validateForm()
    {
        if ($this->input->post('ratings')) {
            foreach ($this->input->post('ratings') as $key => $value) {
                $this->form_validation->set_rules('ratings[' . $key . ']', 'lang:label_name', 'xss_clean|trim|required|min_length[2]|max_length[32]');
            }
        }
        if ($this->form_validation->run() === TRUE) {
            return TRUE;
        } else {
            return FALSE;
        }
    }