__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Joomla! Content Management System
*
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\MVC\Model;
use Joomla\CMS\Form\Form;
use Joomla\CMS\Table\Table;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Interface for a workflow model.
*
* @since 4.0.0
*/
interface WorkflowModelInterface
{
/**
* Set Up the workflow
*
* @param string $extension The option and section separated by.
*
* @return void
*
* @since 4.0.0
*/
public function setUpWorkflow($extension);
/**
* Method to allow derived classes to preprocess the form.
*
* @param Form $form A Form object.
* @param mixed $data The data expected for the form.
*
* @return void
*
* @see FormField
* @since 4.0.0
* @throws \Exception if there is an error in the form event.
*/
public function workflowPreprocessForm(Form $form, $data);
/**
* Let plugins access stage change events
*
* @return void
*
* @since 4.0.0
*/
public function workflowBeforeStageChange();
/**
* Preparation of workflow data/plugins
*
* @return void
*
* @since 4.0.0
*/
public function workflowBeforeSave();
/**
* Executing of relevant workflow methods
*
* @return void
*
* @since 4.0.0
*/
public function workflowAfterSave($data);
/**
* Batch change workflow stage or current.
*
* @param integer $oldId The ID of the item copied from
* @param integer $newId The ID of the new item
*
* @return null
*
* @since 4.0.0
*/
public function workflowCleanupBatchMove($oldId, $newId);
/**
* Runs transition for item.
*
* @param array $pks Id of items to execute the transition
* @param integer $transitionId Id of transition
*
* @return boolean
*
* @since 4.0.0
*/
public function executeTransition(array $pks, int $transitionId);
/**
* Method to get state variables.
*
* @param string $property Optional parameter name
* @param mixed $default Optional default value
*
* @return mixed The property where specified, the state object where omitted
*
* @since 4.0.0
*/
public function getState($property = null, $default = null);
/**
* Method to get the model name
*
* The model name. By default parsed using the classname or it can be set
* by passing a $config['name'] in the class constructor
*
* @return string The name of the model
*
* @since 4.0.0
* @throws \Exception
*/
public function getName();
/**
* Method to get a table object, load it if necessary.
*
* @param string $name The table name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $options Configuration array for model. Optional.
*
* @return Table A Table object
*
* @since 3.0
* @throws \Exception
*/
public function getTable($name = '', $prefix = '', $options = []);
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Exception | Folder | 0775 |
|
|
| AdminModel.php | File | 52.89 KB | 0664 |
|
| BaseDatabaseModel.php | File | 13.86 KB | 0664 |
|
| BaseModel.php | File | 3.99 KB | 0664 |
|
| DatabaseAwareTrait.php | File | 1.96 KB | 0664 |
|
| DatabaseModelInterface.php | File | 654 B | 0664 |
|
| FormBehaviorTrait.php | File | 6.69 KB | 0664 |
|
| FormModel.php | File | 7.6 KB | 0664 |
|
| FormModelInterface.php | File | 836 B | 0664 |
|
| ItemModel.php | File | 1.22 KB | 0664 |
|
| ItemModelInterface.php | File | 668 B | 0664 |
|
| LegacyModelLoaderTrait.php | File | 5.74 KB | 0664 |
|
| ListModel.php | File | 22.49 KB | 0664 |
|
| ListModelInterface.php | File | 649 B | 0664 |
|
| ModelInterface.php | File | 630 B | 0664 |
|
| State.php | File | 3.6 KB | 0664 |
|
| StateBehaviorTrait.php | File | 2.54 KB | 0664 |
|
| StatefulModelInterface.php | File | 1.17 KB | 0664 |
|
| WorkflowBehaviorTrait.php | File | 11.09 KB | 0664 |
|
| WorkflowModelInterface.php | File | 3.35 KB | 0664 |
|