- md5
- a52943a47272c090ca0c65ca6c55434e
- sha1
- 4f53706cabf9545188ac309fdb3cf55447f4aa2b
- sha256
- 896be95eae1a0144607178843155e26f305892d0006a624a1eb2d5b965d19a9a
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
<?php
/**
* @package Joomla.Administrator
* @subpackage com_workflow
*
* @copyright (C) 2026 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @since 6.1.0
*/
namespace Joomla\Component\Workflow\Administrator\Model;
use Joomla\CMS\Factory;
use Joomla\CMS\MVC\Model\AdminModel;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Model class for Graphical View of the workflow
*
* @since 6.1.0
*/
class GraphModel extends AdminModel
{
/**
* Auto-populate the model state.
*
* Note. Calling getState in this method will result in recursion.
*
* @return void
*
* @since 6.1.0
*/
public function populateState()
{
parent::populateState();
$app = Factory::getApplication();
$context = $this->option . '.' . $this->name;
$extension = $app->getUserStateFromRequest($context . '.filter.extension', 'extension', null, 'cmd');
$this->setState('filter.extension', $extension);
}
/**
* Method to get the name of the model.
*
* @return string The name of the model.
*
* @since 6.1.0
*/
public function getName()
{
return 'workflow'; // TODO: change it to to handle dynamically
}
/**
* Method to get the form.
*
* @param array $data An optional array of data for the form to interrogate.
* @param bool $loadData True if the form is to load its own data (default case), false if not.
*
* @return mixed A \Joomla\CMS\Form\Form object on success, false on failure.
*
* @since 6.1.0
*/
public function getForm($data = [], $loadData = true)
{
return false;
}
}
The same content is in 28 releases, Joomla 6.1.0-beta1 to 6.2.1-rc1. See them all, or every version of this file.