installed plugin Easy Digital Downloads version 3.1.0.3

This commit is contained in:
2022-11-27 15:03:07 +00:00
committed by Gitium
parent 555673545b
commit c5dce2cec6
1200 changed files with 238970 additions and 0 deletions

View File

@ -0,0 +1,43 @@
<?php
/**
* Invalid_Parameter exception class
*
* @package EDD
* @subpackage Classes/Utilities
* @copyright Copyright (c) 2018, Easy Digital Downloads, LLC
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 3.0
*/
namespace EDD\Reports\Exceptions;
use EDD\Utils\Exceptions;
/**
* Implements an Invalid_Argument exception thrown when a given
* argument or parameter is invalid.
*
* @since 3.0
*
* @see \InvalidArgumentException
* @see \EDD_Exception
*/
class Invalid_Parameter extends Exceptions\Invalid_Parameter implements \EDD_Exception {
/**
* Builds the Invalid_Parameter exception message.
*
* @since 3.0
*
* @param string $argument_name Argument or parameter resulting in the exception.
* @param string $method Function or method name the argument or parameter was passed to.
* @return string Informed Invalid_Argument message.
*/
public static function build_message( $argument_name, $method, $context = null ) {
self::$error_message = sprintf( 'The \'%1$s\' %2$s for the \'%3$s\' item is missing or invalid in \'%4$s\'.',
$argument_name,
static::$type,
$context,
$method
);
}
}

View File

@ -0,0 +1,43 @@
<?php
/**
* Invalid_View_Parameter exception class
*
* @package EDD
* @subpackage Classes/Utilities
* @copyright Copyright (c) 2018, Easy Digital Downloads, LLC
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 3.0
*/
namespace EDD\Reports\Exceptions;
use EDD\Utils\Exceptions;
/**
* Implements an Invalid_View_Parameter exception thrown when a given
* view parameter is invalid.
*
* @since 3.0
*
* @see Invalid_Parameter
* @see \EDD_Exception
*/
class Invalid_View_Parameter extends Invalid_Parameter implements \EDD_Exception {
/**
* Builds the Invalid_View_Parameter exception message.
*
* @since 3.0
*
* @param string $argument_name Argument or parameter resulting in the exception.
* @param string $method Function or method name the argument or parameter was passed to.
* @return string Informed Invalid_Argument message.
*/
public static function build_message( $argument_name, $method, $context = null ) {
self::$error_message = sprintf( 'The \'%1$s\' %2$s for the \'%3$s\' view is missing or invalid in \'%4$s\'.',
$argument_name,
static::$type,
$context,
$method
);
}
}

View File

@ -0,0 +1,34 @@
<?php
/**
* Invalid_View exception class
*
* @package EDD
* @subpackage Classes/Utilities
* @copyright Copyright (c) 2018, Easy Digital Downloads, LLC
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 3.0
*/
namespace EDD\Reports\Exceptions;
use EDD\Utils\Exceptions;
/**
* Implements an Invalid_View exception thrown when a given
* view is invalid.
*
* @since 3.0
*
* @see \InvalidArgumentException
* @see \EDD_Exception
*/
class Invalid_View extends Invalid_Parameter implements \EDD_Exception {
/**
* Type of value.
*
* @since 3.0
* @var string
*/
public static $type = 'view';
}