CoreFiles by mySites.guru
AssociationModel.php42 lines, 1,129 bytes, from Joomla_6.2.0-beta2-Beta-Full_Package.zip
Raw History Compare with 6.2.0-beta1
md5
1b5518081170e1a2cb0c6b3eff9b9a28
sha1
31ea5e0edefe419abadfe250b21a3211e77d1bb7
sha256
7612b0debfeb4cf9a3fa8316930e504adad564f3d0f4adba4b7fde24897d4a53
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_associations
 *
 * @copyright   (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Associations\Administrator\Model;

use Joomla\CMS\Form\Form;
use Joomla\CMS\MVC\Model\ListModel;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Methods supporting a list of article records.
 *
 * @since  3.7.0
 */
class AssociationModel extends ListModel
{
    /**
     * Method to get the record form.
     *
     * @param   array    $data      Data for the form.
     * @param   boolean  $loadData  True if the form is to load its own data (default case), false if not.
     *
     * @return  Form  A Form object
     *
     * @since  3.7.0
     * @throws  \Exception on failure
     */
    public function getForm($data = [], $loadData = true)
    {
        return $this->loadForm('com_associations.association', 'association', ['control' => 'jform', 'load_data' => $loadData]);
    }
}

The same content is in 30 releases, Joomla 6.1.0-alpha2 to 6.2.1-rc1. See them all, or every version of this file.