HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/cms/api/events/events.content.php
<?php

/**
* This class defines the data to be passed through to the event it is named after.
*
* BeforeDisplay is fired...
*
* This event is not cancellable
*
*/
class iwp_event_content_beforedisplay extends iwp_event_base
{

	public function __construct ()
	{
		parent::__construct(false);
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * AfterDbLoad is fired after content data is loaded (for the purpose of viewing a full content page only) from the database, but before any template assignments are made.
 *
 * This event is not cancellable.
 *
 */
class iwp_event_content_afterdbload extends iwp_event_base
{
	/**
	* The current instance of iwp_content
	*
	* @var iwp_content
	*/
	public $content;

	/**
	* Constructor
	*
	* @param iwp_content $content The current instance of iwp_content
	* @return iwp_event_content_afterdbload
	*/
	public function __construct (iwp_content &$content)
	{
		$this->content = &$content;
		parent::__construct(false);
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * BeforeDelete is fired before a content item is deleted, but after it is validated as OK to be deleted.
 *
 * Cancelling this event will prevent the content item from being deleted and produce an error in the control panel.
 *
 */
class iwp_event_content_beforedelete extends iwp_event_base
{
	/**
	 * The current instance of iwp_content
	 *
	 * @var iwp_content
	 */
	public $content;

	/**
	 * Constructor
	 *
	 * @param iwp_content $content The current instance of iwp_content
	 * @return iwp_event_content_beforedelete
	 */
	public function __construct (iwp_content &$content) {
		$this->content = &$content;
		parent::__construct();
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * AfterDelete is fired after a content item is deleted
 *
 * This event is not cancellable.
 */
class iwp_event_content_afterdelete extends iwp_event_base
{
	/**
	 * The content id of the item which was deleted (in case it is overwritten in the class)
	 *
	 * @var int
	 */
	public $contentId;

	/**
	 * The instance of iwp_content which was deleted
	 *
	 * @var iwp_content
	 */
	public $content;

	/**
	 * Constructor
	 *
	 * @param int $contentId The content id of the item which was deleted (in case it is overwritten in the class)
	 * @param iwp_content $content The instance of iwp_content which was deleted
	 * @return iwp_event_content_afterdelete
	 */
	public function __construct ($contentId, iwp_content &$content) {
		$this->contentId = $contentId;
		$this->content = &$content;
		parent::__construct(false);
	}
}