<?php
// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id: UnknownStep.php 66104 2018-04-19 18:09:02Z luciash $

class Search_Action_UnknownStep implements Search_Action_Step
{
	private $actionName;

	function __construct($action = null)
	{
		$this->actionName = $action;
	}

	function getFields()
	{
		return [];
	}

	function validate(array $entry)
	{
		throw new Search_Action_Exception(tr('Unknown search action step: %0', $this->actionName));
	}

	function execute(array $entry)
	{
	}

	function requiresInput()
	{
		return false;
	}

	function getName()
	{
		return $this->actionName;
	}
}
