Method Library



( ZN >= 1.0.0 )

A class created to use Post, get, request, or files data. The standard globals are libraries designed to prevent the attack of XSS by establishing the security of this data because it does not pass through the security screen .

 

# Methods


Mixed post ( String $ name , Mixed $ value )
Mixed get ( String $ name , Mixed $ value )
Mixed env ( String $ name , Mixed $ value )
Mixed server ( String $ name , Mixed $ value )
Mixed equest ( String $ name , Mixed $ value )
Mixed files ( String $ fileName , String $ type )
Bool delete ( String $ input , String $ name )

 

# Post ( ZN >= 1.0.0 )


It is used to get the data that comes with the $ _POST Method.

Parameters

String $ name One of the keys to the $ _POST array.
Mixed $ Value The value to be added to the key.
return Mixed

uses

Method::post('example', 'Example Value');
echo Method::post('example');
Example Value

Direct Access ( ZN> = 5.2.0 )

If the keys of the data array coming from the Post method are used as the method name, the data of that key is obtained.

Post::example('Example Value');
echo Post::example();
Example Value

To get all the hides;

output( Post::all() );

 

# Get ( ZN >= 1.0.0 )


It is used to get the data that comes with the $ _GET method.

Parameters

String $ name One of the keys in the $ _GET array.
Mixed $ Value The value to be added to the key.
return Mixed

uses

Method::get('example', 'Example Value');
echo Method::get('example');
Example Value

Direct Access ( ZN> = 5.2.0 )

If the keys of the data array coming from the Get method are used as the method name, the data of that key is obtained.

Get::example('Example Value');
echo Get::example();
Example Value

To get all getleri;

output( Get::all() );

 

# Request ( ZN >= 1.0.0 )


It is used to get the data coming with $ _POST and $ _GET methods.

Parameters

String $ name One of the keys to the $ _REQUEST array.
Mixed $ Value The value to be added to the key.
return Mixed

uses

Method::post('postData', 'This is post data!');
Method::get('getData', 'This is get data!');
Method::request('example', 'Example Value');

echo Method::request('postData');
echo Method::request('getData');
echo Method::request('example');
This is post data!
This is get data!
Example Value

Direct Access ( ZN> = 5.2.0 )

If the keys of the data array coming from the Post and get methods are used as the method name, the data of that key is obtained.

Request::example('Example Value');
echo Request::example();
Example Value

 

# Env ( ZN >= 1.0.0 )


Used to retrieve data from $ _ENV methods.

Parameters

String $ name One of the keys to the $ _ENV sequence.
Mixed $ Value The value to be added to the key.
return Mixed

uses

Method::env('example', 'Example Value');
echo Method::env('example');
Example Value

 

# Server ( ZN >= 1.0.0 )


Used to retrieve data from $ _SERVER methods.

Parameters

String $ name One of the keys in the $ _SERVER array.
Mixed $ Value The value to be added to the key.
return Mixed

uses

Method::server('example', 'Example Value');
echo Method::server('example');
Example Value

Direct Access ( ZN> = 5.2.0 )

If the keys of the incoming data array are used as the method name, the data of that key is obtained.

output(Server::all());
echo Server::host();

 

# Files ( ZN> = 1.0.0 )


Used to retrieve data from $ _FILES methods.

Parameters

String $ name One of the keys to the $ _FILES array.
Mixed $ key  = 'name' Internal array key.
return Mixed

uses

Method::files('example');