64 lines
1.1 KiB
PHP
64 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* The Legend of Z
|
|
*
|
|
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
|
|
* @copyright 2014 Heinrich-Heine-Universität Düsseldorf
|
|
* @license http://www.gnu.org/licenses/gpl.html
|
|
* @link https://bitbucket.org/coderkun/the-legend-of-z
|
|
*/
|
|
|
|
namespace hhu\z\requests;
|
|
|
|
|
|
/**
|
|
* Representation of a mail-request.
|
|
*
|
|
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
|
|
*/
|
|
class MailRequest extends \nre\core\Request
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Add a parameter.
|
|
*
|
|
* @param mixed $value Value of parameter
|
|
*/
|
|
public function addParam($value)
|
|
{
|
|
$this->params[] = $value;
|
|
}
|
|
|
|
|
|
/**
|
|
* Add multiple parameters.
|
|
*
|
|
* @param mixed $value1 Value of first parameter
|
|
* @param mixed … Values of further parameters
|
|
*/
|
|
public function addParams($value1)
|
|
{
|
|
$this->params = array_merge(
|
|
$this->params,
|
|
func_get_args()
|
|
);
|
|
}
|
|
|
|
|
|
/**
|
|
* Delete all stored parameters (from offset on).
|
|
*
|
|
* @param int $offset Offset-index
|
|
*/
|
|
public function clearParams($offset=0)
|
|
{
|
|
$this->params = array_slice($this->params, 0, $offset);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|