CoreFiles by mySites.guru
BeforeDeleteEvent.php43 lines, 1,014 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
54a3b362d1f6025c81041ab83d7a1129
sha1
589db9a556c7e0c3c8b5dafe770f9a9ca6c978f3
sha256
30da700e29e329591352287aa7431853472e42758ac0aa5f4e4fd2f240a2ea41
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

namespace Joomla\CMS\Event\Table;

defined('JPATH_PLATFORM') or die;

use BadMethodCallException;

/**
 * Event class for JTable's onBeforeDelete event
 *
 * @since  __DEPLOY_VERSION__
 */
class BeforeDeleteEvent extends AbstractEvent
{
	/**
	 * Constructor.
	 *
	 * Mandatory arguments:
	 * subject		JTableInterface	The table we are operating on
	 * pk			An optional primary key value to delete.
	 *
	 * @param   string  $name       The event name.
	 * @param   array   $arguments  The event arguments.
	 *
	 * @throws  BadMethodCallException
	 */
	public function __construct($name, array $arguments = array())
	{
		if (!array_key_exists('pk', $arguments))
		{
			throw new BadMethodCallException("Argument 'pk' is required for event $name");
		}

		parent::__construct($name, $arguments);
	}
}

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