CoreFiles by mySites.guru
ViewInterface.php46 lines, 1,037 bytes, from Joomla_4.4.3-Stable-Full_Package.zip
Raw History Compare with 4.4.2
md5
514a4bb5af9a7a3c149239d8aab16e9b
sha1
372dc61ba60d6e7877e7ca2a9b73745f2923b84c
sha256
39fdd4232cb295685e4c86d5b86692b64c132e8863a782b0412ae786da5983ab
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright   (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\MVC\View;

use Joomla\CMS\MVC\Model\BaseDatabaseModel;

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

/**
 * Joomla Platform CMS Interface
 *
 * @since  4.0.0
 */
interface ViewInterface
{
    /**
     * Execute and display a template script.
     *
     * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.
     *
     * @return  void
     *
     * @since   4.0.0
     */
    public function display($tpl = null);

    /**
     * Method to get the model object
     *
     * @param   string  $name  The name of the model (optional)
     *
     * @return  BaseDatabaseModel  The model object
     *
     * @since   3.0
     */
    public function getModel($name = null);
}

The same content is in 43 releases, Joomla 4.3.2-rc1 to 4.4.14. See them all, or every version of this file.