In-Portal Developers Guide

This is a wiki-based Developers Guide for In-Portal Open Source CMS. The purpose of this guide is to provide advanced users, web developers and programmers with documentation on how to expand, customize and improve the functionality and the code the In-Portal software. Please consider contributing to our documentation writing effort.

K4:KHTTPQuery

From In-Portal Developers Guide

Jump to: navigation, search
Line 19: Line 19:
|}
|}
== Data Passed by the User (From the Browser) ==
== Data Passed by the User (From the Browser) ==
-
К данному типу данных можно отнести все переменные полученные из встроенных массивов php. На приведённом изображении это будут переменные со следующими именами:
+
For user data it's possible to include all variables received from built-in PHP arrays. In the image above, it would be the variables with the following names:  
-
* из массива $_COOKIE
+
* From array $_COOKIE
<source lang="php">TreeExpandStatus, cookies_on, catalog_active_prefix, adm_sid, __qca</source>
<source lang="php">TreeExpandStatus, cookies_on, catalog_active_prefix, adm_sid, __qca</source>
-
* из массива $_GET
+
* From array $_GET
<source lang="php">env</source>
<source lang="php">env</source>
-
== Пользовательские переменные (установленные из K4) ==
+
== User Variables (установленные из K4) ==
<source lang="php">module, section</source>
<source lang="php">module, section</source>
-
== Разобранная переменная окружения ==
+
== ??Разобранная?? Environment Variable ==
-
В данном примере все ранее не описанные переменные получены в результате обработки [[K4:Environment|переменной окружения]]. Эти переменные легко определить, т.к. в их имени будет символ подчёркивания ("<code>_</code>").
+
In this example, all the variables that aren't covered, are received as a result of processing the
 +
[[K4:Environment|Environment Variable]]. It's easy to determine these variable because their names will contain an underscorce ("<code>_</code>").

Revision as of 22:40, 2 April 2009

Системные классы Системные классы
Статьи в этой категории
Содержание реестра kHTTPQuery
Содержание реестра kHTTPQuery

The kHTTPQuery class is used in K4 for pre-proccessing and then to safely use the following types of data:

As far as user data, we're referring to the content of the following built in PHP arrays:

  1. $_COOKIE - cookies, that are stored on the user's computer
  2. $_GET - parameters passed in the address bar of the internet browser
  3. $_POST - values of the fields in a form
  4. $_FILES - files uploaded through a form
Image:Tipbox Icon.gif Arrays are listed in the order in which they were added to the variables register through this class.

Also available are arrays $_ENV и $_SERVER, but right now they're not used in K4.

Data Passed by the User (From the Browser)

For user data it's possible to include all variables received from built-in PHP arrays. In the image above, it would be the variables with the following names:

  • From array $_COOKIE
TreeExpandStatus, cookies_on, catalog_active_prefix, adm_sid, __qca
  • From array $_GET
env

User Variables (установленные из K4)

module, section

 ??Разобранная?? Environment Variable

In this example, all the variables that aren't covered, are received as a result of processing the Environment Variable. It's easy to determine these variable because their names will contain an underscorce ("_").