Source for file config.php
Documentation is available at config.php
 * @package     Joomla.Administrator  
 * @subpackage  com_messages  
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.  
 * @license     GNU General Public License version 2 or later; see LICENSE.txt  
 * Messages Component Message Model  
 * @package     Joomla.Administrator  
 * @subpackage  com_messages  
     * Method to save a record.  
        // Check for request forgeries.  
        $model = 
$this->getModel('Config', 'MessagesModel');  
        $data  = 
$this->input->post->get('jform', array(), 'array');  
        // Validate the posted data.  
        $form    = 
$model->getForm();  
        $data = 
$model->validate($form, $data);  
        // Check for validation errors.  
            // Get the validation messages.  
            $errors    = 
$model->getErrors();  
            // Push up to three validation messages out to the user.  
            for ($i = 
0, $n = 
count($errors); $i < 
$n && 
$i < 
3; $i++
)  
                if ($errors[$i] instanceof 
Exception)  
                    $app->enqueueMessage($errors[$i]->getMessage(), 'warning');  
                    $app->enqueueMessage($errors[$i], 'warning');  
            // Redirect back to the main list.  
        // Attempt to save the data.  
        if (!$model->save($data))  
            // Redirect back to the main list.  
        // Redirect to the list screen.  
 
 
	
		Documentation generated on Tue, 19 Nov 2013 14:56:29 +0100 by phpDocumentor 1.4.3