Add all the phpdocs to the domframework
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1246 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
10
rest.php
10
rest.php
@@ -1,12 +1,20 @@
|
||||
<?php
|
||||
/** DomFramework
|
||||
@package domframework
|
||||
@author Dominique Fournier <dominique@fournier38.fr> */
|
||||
|
||||
require_once ("domframework/http.php");
|
||||
/** Allow to manage the REST protocol by using the users output types */
|
||||
class rest
|
||||
{
|
||||
/** Allowed types by default */
|
||||
public $allowedtypes = array ("json", "xml", "txt", "csv");
|
||||
|
||||
/** Display the message (which can be a string, an array, an integer...)
|
||||
into the type asked by the client if it is allowed.
|
||||
By default, the JSON type is used */
|
||||
By default, the JSON type is used
|
||||
@param string $message Message to be displayed by the output type
|
||||
@param integer $code HTTP code to use */
|
||||
function display ($message, $code=200)
|
||||
{
|
||||
$http = new http;
|
||||
|
||||
Reference in New Issue
Block a user