PHP Classes

File: tests/apps/two.php

Recommend this page to a friend!
  Classes of Cesar D. Rodas   PHP JSON API Server   tests/apps/two.php   Download  
File: tests/apps/two.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP JSON API Server
Handle REST API requests with functions in scripts
Author: By
Last change:
Date: 7 years ago
Size: 386 bytes
 

Contents

Class file image Download
<?php

/**
 * @preResponse
 */
function do_encrypt(&$response)
{
    if (!empty(
$GLOBALS['encrypt'])) {
       
$response['responses'] = base64_encode(json_encode($response['responses']));
    }
}

/** @API do_fail */
function do_fail()
{
}

/**
 * @preRoute yyy
 * @xxx
 */
function do_it()
{
}

/**
 * @preRoute
 */
function all_request(Array & $args)
{
   
$args['added'] = 1;
}