CoreFiles by mySites.guru
WorkflowServiceInterface.php65 lines, 1,519 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
a026a302be091c92185c59805dfc8f14
sha1
b3390c5e907f7c779e2e7e1cc2e58b9719ef9d9d
sha256
79f9a2c33ccaa1b3e2c739518877828457720a4df0e083109419e5b173b00d51
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Workflow;

\defined('JPATH_PLATFORM') or die;

/**
 * The workflow service.
 *
 * @since  4.0.0
 */
interface WorkflowServiceInterface
{
	/**
	 * Method to filter transitions by given id of state.
	 *
	 * @param   array  $transitions  Array of transitions to filter for
	 * @param   int    $pk           Id of the state on which the transitions are performed
	 *
	 * @return  array
	 *
	 * @since  4.0.0
	 */
	public function filterTransitions($transitions, $pk): array;

	/**
	 * Method to change state of multiple ids
	 *
	 * @param   array  $pks        Array of IDs
	 * @param   int    $condition  Condition of the workflow state
	 *
	 * @return  boolean
	 *
	 * @since   4.0.0
	 */
	public static function updateContentState($pks, $condition): bool;

	/**
	 * Returns an array of possible conditions for the component.
	 *
	 * @param   string  $extension  Full extension string
	 *
	 * @return  array
	 *
	 * @since   4.0.0
	 */
	public static function getConditions($extension): array;

	/**
	 * Returns a table name for the state association
	 *
	 * @param   string  $section  An optional section to differ different areas in the component
	 *
	 * @return  string
	 *
	 * @since   4.0.0
	 */
	public function getWorkflowTableBySection(string $section = null) : string;
}

No other release has this exact content. See every version of this file.