? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/libraries/rokcommon/RokCommon/Ajax/
File Upload :
Current File : /home/admin/public_html/old/libraries/rokcommon/RokCommon/Ajax/Result.php

<?php
/**
 * @version   $Id: Result.php 10831 2013-05-29 19:32:17Z btowles $
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2015 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */
defined('ROKCOMMON') or die;

/**
 *
 */
class RokCommon_Ajax_Result
{

	/**
	 *
	 */
	const STATUS_SUCCESS = 'success';
	/**
	 *
	 */
	const STATUS_ERROR = 'error';

	/**
	 * @var string error|success
	 */
	public $status = self::STATUS_SUCCESS;

	/**
	 * @var string
	 */
	public $message = '';

	/**
	 * The model specific payload
	 * @var mixed
	 */
	public $payload;


	/**
	 * @param string $message
	 */
	public function setMessage($message)
	{
		$this->message = $message;
	}

	/**
	 * @return string
	 */
	public function getMessage()
	{
		return $this->message;
	}

	/**
	 * @param mixed $payload
	 */
	public function setPayload($payload)
	{
		$this->payload = $payload;
	}

	/**
	 * @return mixed
	 */
	public function getPayload()
	{
		return $this->payload;
	}


	/**
	 * Sets the result to be an error
	 */
	public function setAsError()
	{
		$this->status = self::STATUS_ERROR;
	}

	/**
	 * Sets the result to be a success
	 */
	public function setAsSuccess()
	{
		$this->status = self::STATUS_SUCCESS;
	}
}

T1KUS90T
  root-grov@210.1.60.28:~$