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/modules/comments/events.comments.php
<?php

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * BeforeNewCommentSave is fired before a new comment posted onto the site is saved into the database. This can be used to modify comment data before it is committed and other events are fired.
 *
 * Cancelling this event will stop the comment from being saved.
 *
 * Modules listening to this event should be sure to check the Status of the comment before reacting; the comment may be auto-approved.
 *
 */
class iwp_event_module_comments_beforenewcommentsave extends iwp_event_base
{
	/**
	 * The comment which is about to be saved
	 *
	 * @var iwp_module_comments_commentdata
	 */
	public $comment;

	/**
	 * Constructor
	 *
	 * @param iwp_module_comments_commentdata $comment The comment which is about to be saved
	 */
	public function __construct (iwp_module_comments_commentdata &$comment)
	{
		$this->comment = &$comment;
		parent::__construct();
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * AfterNewCommentSave is fired after a new comment posted onto the site has been saved into the database. This can be used for writing up custom reactions to new posts, such as implementing pings, trackbacks, notifications, etc.
 *
 * This event is not cancellable.
 *
 * Modules listening to this event should be sure to check the Status of the comment before reacting; the comment may be auto-approved.
 *
 */
class iwp_event_module_comments_afternewcommentsave extends iwp_event_base
{
	/**
	 * The comment which has been saved
	 *
	 * @var iwp_module_comments_commentdata
	 */
	public $comment;

	/**
	 * Constructor
	 *
	 * @param iwp_module_comments_commentdata $comment The comment which has been saved
	 */
	public function __construct (iwp_module_comments_commentdata &$comment)
	{
		$this->comment = &$comment;
		parent::__construct(false);
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * BeforeEmailSend is fired before any email is sent by the comment module. This event may fire multiple times when a new comment is posted depending on which emails are being sent.
 *
 * Cancelling this event will stop the email from being sent.
 *
 * The template string can be checked to determine which email is being sent.
 *
 */
class iwp_event_module_comments_beforeemailsend extends iwp_event_base
{
	/**
	 * Name of the email template being sent. Can be used to determine which email is being sent.
	 *
	 * @var string
	 */
	public $template;

	/**
	 * This is the comment about which the current email is about to be sent
	 *
	 * @var iwp_module_comments_commentdata
	 */
	public $comment;

	/**
	 * The email object containing full info about the email about to be sent
	 *
	 * @var Email_API
	 */
	public $email;

	/**
	 * Constructor
	 *
	 * @param string $template Name of the email template being sent. Can be used to determine which email is being sent.
	 * @param iwp_module_comments_commentdata $comment This is the comment about which the current email is about to be sent
	 * @param Email_API $email The email object containing full info about the email about to be sent
	 */
	public function __construct (&$template, iwp_module_comments_commentdata &$comment, Email_API &$email)
	{
		$this->template = &$template;
		$this->comment = &$comment;
		$this->email = &$email;
		parent::__construct();
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * AfterEmailSend is fired after an email is successfully sent by the comment module. This event may fire multiple times when a new comment is posted depending on which emails are being sent.
 *
 * This event is not cancellable.
 *
 * The template string can be checked to determine which email is being sent.
 *
 */
class iwp_event_module_comments_afteremailsend extends iwp_event_base
{
	/**
	 * Name of the email template being sent. Can be used to determine which email is being sent.
	 *
	 * @var string
	 */
	public $template;

	/**
	 * This is the comment about which the current email has been sent
	 *
	 * @var iwp_module_comments_commentdata
	 */
	public $comment;

	/**
	 * The email object containing full info about the sent email
	 *
	 * @var Email_API
	 */
	public $email;

	/**
	 * The result array as returned by Email_API::Send
	 *
	 * @var array
	 */
	public $result;

	/**
	 * Constructor
	 *
	 * @param string $template Name of the email template being sent. Can be used to determine which email is being sent.
	 * @param iwp_module_comments_commentdata $comment This is the comment about which the current email has been sent
	 * @param Email_API $email The email object containing full info about the sent email
	 * @param array $result The result array as returned by Email_API::Send
	 */
	public function __construct ($template, iwp_module_comments_commentdata &$comment, Email_API &$email, array $result)
	{
		$this->template = $template;
		$this->comment = &$comment;
		$this->email = &$email;
		$this->result = $result;
		parent::__construct(false);
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * BeforeCommentApprove is fired before a comment is approved via the control panel. This event is not fired when a new post is auto-approved.
 *
 * Cancelling this event will stop the comment from being approved.
 *
 */
class iwp_event_module_comments_beforecommentapprove extends iwp_event_base
{
	/**
	 * The comment being approved
	 *
	 * @var iwp_module_comments_commentdata
	 */
	public $comment;

	/**
	 * The selected preference for sending an email about this action
	 *
	 * @var boolean
	 */
	public $sendEmail;

	/**
	 * The selected preference for saving the comment to the database
	 *
	 * @var boolean
	 */
	public $save;

	/**
	 * Constructor
	 *
	 * @param iwp_module_comments_commentdata $comment The comment being approved
	 * @param boolean $sendEmail The selected preference for sending an email about this action
	 * @param boolean $save The selected preference for saving the comment to the database
	 */
	public function __construct (iwp_module_comments_commentdata &$comment, &$sendEmail, &$save)
	{
		$this->comment = &$comment;
		$this->sendEmail = &$sendEmail;
		$this->save = &$save;
		parent::__construct();
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * AfterCommentApprove is fired after a comment is approved via the control panel. This event is not fired when a new post is auto-approved.
 *
 * This event is not cancellable.
 *
 */
class iwp_event_module_comments_aftercommentapprove extends iwp_event_base
{
	/**
	 * The comment being approved
	 *
	 * @var iwp_module_comments_commentdata
	 */
	public $comment;

	/**
	 * The selected preference for sending an email about this action
	 *
	 * @var boolean
	 */
	public $sendEmail;

	/**
	 * The selected preference for saving the comment to the database
	 *
	 * @var boolean
	 */
	public $save;

	/**
	 * Constructor
	 *
	 * @param iwp_module_comments_commentdata $comment The comment being approved
	 * @param boolean $sendEmail The selected preference for sending an email about this action
	 * @param boolean $save The selected preference for saving the comment to the database
	 */
	public function __construct (iwp_module_comments_commentdata &$comment, $sendEmail, $save)
	{
		$this->comment = &$comment;
		$this->sendEmail = $sendEmail;
		$this->save = $save;
		parent::__construct(false);
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * BeforeCommentDisapprove is fired before a comment is approved via the control panel.
 *
 * Cancelling this event will stop the comment from being disapproved.
 *
 */
class iwp_event_module_comments_beforecommentdisapprove extends iwp_event_base
{
	/**
	 * The comment being disapproved
	 *
	 * @var iwp_module_comments_commentdata
	 */
	public $comment;

	/**
	 * The selected preference for sending an email about this action
	 *
	 * @var boolean
	 */
	public $sendEmail;

	/**
	 * The selected preference for saving the comment to the database
	 *
	 * @var boolean
	 */
	public $save;

	/**
	 * Constructor
	 *
	 * @param iwp_module_comments_commentdata $comment The comment being disapproved
	 * @param boolean $sendEmail The selected preference for sending an email about this action
	 * @param boolean $save The selected preference for saving the comment to the database
	 */
	public function __construct (iwp_module_comments_commentdata &$comment, &$sendEmail, &$save)
	{
		$this->comment = &$comment;
		$this->sendEmail = &$sendEmail;
		$this->save = &$save;
		parent::__construct();
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * AfterCommentDisapprove is fired after a comment is approved via the control panel.
 *
 * This event is not cancellable.
 *
 */
class iwp_event_module_comments_aftercommentdisapprove extends iwp_event_base
{
	/**
	 * The comment being disapproved
	 *
	 * @var iwp_module_comments_commentdata
	 */
	public $comment;

	/**
	 * The selected preference for sending an email about this action
	 *
	 * @var boolean
	 */
	public $sendEmail;

	/**
	 * The selected preference for saving the comment to the database
	 *
	 * @var boolean
	 */
	public $save;

	/**
	 * Constructor
	 *
	 * @param iwp_module_comments_commentdata $comment The comment being disapproved
	 * @param boolean $sendEmail The selected preference for sending an email about this action
	 * @param boolean $save The selected preference for saving the comment to the database
	 */
	public function __construct (iwp_module_comments_commentdata &$comment, $sendEmail, $save)
	{
		$this->comment = &$comment;
		$this->sendEmail = $sendEmail;
		$this->save = $save;
		parent::__construct(false);
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * BeforeIPBlock is fired before an IP is blocked via the control panel comment listing pages. This event is currently not fired when the IP block list is manually edited via the module configuration screen.
 *
 * Cancelling this event will stop the IP from being blocked.
 *
 */
class iwp_event_module_comments_beforeipblock extends iwp_event_base
{
	/**
	 * The numeric IPv4 address being blocked
	 *
	 * @var string
	 */
	public $ip;

	/**
	 * The selected preference for saving the block to the database
	 *
	 * @var boolean
	 */
	public $save;

	/**
	 * Constructor
	 *
	 * @param string $ip The numeric IPv4 address being blocked
	 * @param boolean $save The selected preference for saving the block to the database
	 */
	public function __construct (&$ip, &$save)
	{
		$this->ip = &$ip;
		$this->save = &$save;
		parent::__construct();
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * AfterIPBlock is fired after an IP is blocked via the control panel comment listing pages. This event is currently not fired when the IP block list is manually edited via the module configuration screen.
 *
 * This event is not cancellable.
 *
 */
class iwp_event_module_comments_afteripblock extends iwp_event_base
{
	/**
	 * The numeric IPv4 address being blocked
	 *
	 * @var string
	 */
	public $ip;

	/**
	 * The selected preference for saving the block to the database
	 *
	 * @var boolean
	 */
	public $save;

	/**
	 * Constructor
	 *
	 * @param string $ip The numeric IPv4 address being blocked
	 * @param boolean $save The selected preference for saving the block to the database
	 */
	public function __construct ($ip, $save)
	{
		$this->ip = $ip;
		$this->save = $save;
		parent::__construct(false);
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * BeforeIPUnblock is fired before an IP is unblocked via the control panel comment listing pages. This event is currently not fired when the IP block list is manually edited via the module configuration screen.
 *
 * Cancelling this event will stop the IP from being unblocked.
 *
 */
class iwp_event_module_comments_beforeipunblock extends iwp_event_base
{
	/**
	 * The numeric IPv4 address being unblocked
	 *
	 * @var string
	 */
	public $ip;

	/**
	 * The selected preference for saving the unblock to the database
	 *
	 * @var boolean
	 */
	public $save;

	/**
	 * Constructor
	 *
	 * @param string $ip The numeric IPv4 address being unblocked
	 * @param boolean $save The selected preference for saving the unblock to the database
	 */
	public function __construct (&$ip, &$save)
	{
		$this->ip = &$ip;
		$this->save = &$save;
		parent::__construct();
	}
}

/**
 * This class defines the data to be passed through to the event it is named after.
 *
 * AfterIPUnblock is fired after an IP is unblocked via the control panel comment listing pages. This event is currently not fired when the IP block list is manually edited via the module configuration screen.
 *
 * This event is not cancellable.
 *
 */
class iwp_event_module_comments_afteripunblock extends iwp_event_base
{
	/**
	 * The numeric IPv4 address being unblocked
	 *
	 * @var string
	 */
	public $ip;

	/**
	 * The selected preference for saving the unblock to the database
	 *
	 * @var unknown_type
	 */
	public $save;

	/**
	 * Constructor
	 *
	 * @param string $ip The numeric IPv4 address being unblocked
	 * @param boolean $save The selected preference for saving the unblock to the database
	 */
	public function __construct ($ip, $save)
	{
		$this->ip = $ip;
		$this->save = $save;
		parent::__construct(false);
	}
}