You are here

class CleantalkRequest in Anti Spam by CleanTalk 7.5

Same name and namespace in other branches
  1. 7 cleantalk.module \CleantalkRequest
  2. 7.2 cleantalk.module \CleantalkRequest
  3. 7.4 src/CleantalkRequest.php \CleantalkRequest

Request class

Hierarchy

Expanded class hierarchy of CleantalkRequest

File

src/CleantalkRequest.php, line 6

View source
class CleantalkRequest {

  /**
   *  All http request headers
   * @var string
   */
  public $all_headers = null;

  /**
   *  IP address of connection
   * @var string
   */

  //public $remote_addr = null;

  /**
   *  Last error number
   * @var integer
   */
  public $last_error_no = null;

  /**
   *  Last error time
   * @var integer
   */
  public $last_error_time = null;

  /**
   *  Last error text
   * @var string
   */
  public $last_error_text = null;

  /**
   * User message
   * @var string
   */
  public $message = null;

  /**
   * Post example with last comments
   * @var string
   */
  public $example = null;

  /**
   * Auth key
   * @var string
   */
  public $auth_key = null;

  /**
   * Engine
   * @var string
   */
  public $agent = null;

  /**
   * Is check for stoplist,
   * valid are 0|1
   * @var int
   */
  public $stoplist_check = null;

  /**
   * Language server response,
   * valid are 'en' or 'ru'
   * @var string
   */
  public $response_lang = null;

  /**
   * User IP
   * @var strings
   */
  public $sender_ip = null;

  /**
   * User email
   * @var strings
   */
  public $sender_email = null;

  /**
   * User nickname
   * @var string
   */
  public $sender_nickname = null;

  /**
   * Sender info JSON string
   * @var string
   */
  public $sender_info = null;

  /**
   * Post info JSON string
   * @var string
   */
  public $post_info = null;

  /**
   * Is allow links, email and icq,
   * valid are 1|0
   * @var int
   */
  public $allow_links = null;

  /**
   * Time form filling
   * @var int
   */
  public $submit_time = null;
  public $x_forwarded_for = '';
  public $x_real_ip = '';

  /**
   * Is enable Java Script,
   * valid are 0|1|2
   * Status:
   *  null - JS html code not inserted into phpBB templates
   *  0 - JS disabled at the client browser
   *  1 - JS enabled at the client broswer
   * @var int
   */
  public $js_on = null;

  /**
   * user time zone
   * @var string
   */
  public $tz = null;

  /**
   * Feedback string,
   * valid are 'requset_id:(1|0)'
   * @var string
   */
  public $feedback = null;

  /**
   * Phone number
   * @var type
   */
  public $phone = null;

  /**
   * Method name
   * @var string
   */
  public $method_name = 'check_message';

  /**
   * Fill params with constructor
   * @param type $params
   */
  public function __construct($params = null) {
    if (is_array($params) && count($params) > 0) {
      foreach ($params as $param => $value) {
        $this->{$param} = $value;
      }
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CleantalkRequest::$agent public property Engine
CleantalkRequest::$allow_links public property Is allow links, email and icq, valid are 1|0
CleantalkRequest::$all_headers public property All http request headers
CleantalkRequest::$auth_key public property Auth key
CleantalkRequest::$example public property Post example with last comments
CleantalkRequest::$feedback public property Feedback string, valid are 'requset_id:(1|0)'
CleantalkRequest::$js_on public property Is enable Java Script, valid are 0|1|2 Status: null - JS html code not inserted into phpBB templates 0 - JS disabled at the client browser 1 - JS enabled at the client broswer
CleantalkRequest::$last_error_no public property Last error number
CleantalkRequest::$last_error_text public property Last error text
CleantalkRequest::$last_error_time public property Last error time
CleantalkRequest::$message public property User message
CleantalkRequest::$method_name public property Method name
CleantalkRequest::$phone public property Phone number
CleantalkRequest::$post_info public property Post info JSON string
CleantalkRequest::$response_lang public property Language server response, valid are 'en' or 'ru'
CleantalkRequest::$sender_email public property User email
CleantalkRequest::$sender_info public property Sender info JSON string
CleantalkRequest::$sender_ip public property User IP
CleantalkRequest::$sender_nickname public property User nickname
CleantalkRequest::$stoplist_check public property Is check for stoplist, valid are 0|1
CleantalkRequest::$submit_time public property Time form filling
CleantalkRequest::$tz public property user time zone
CleantalkRequest::$x_forwarded_for public property
CleantalkRequest::$x_real_ip public property
CleantalkRequest::__construct public function Fill params with constructor