The client entry-point into the data access layer should be named, cals-data-access.php. This is the only data access layer PHP file to reside in the root "/" folder of the we application.
Its main set of features should include:
-Accepting incoming asynchronous request for database access
-Checking request ($_GET or $_POST) super global arrays for functions requested by the client caller
-Ensuring that the required parameters were passed in the asynchronous client request for the function called
-Executing the required function via the appDataAccess.inc.php file.
-Setting the HTTP/1.1 headers to the appropriate content type based on what is returned to the calling client.
-Returning the requested data from the database and relative application info in JSON, HTML or JavaScript.
The client entry-point into the data access layer should be named, cals-data-access.php. This is the only data access layer PHP file to reside in the root "/" folder of the we application.
Its main set of features should include: -Accepting incoming asynchronous request for database access -Checking request ($_GET or $_POST) super global arrays for functions requested by the client caller -Ensuring that the required parameters were passed in the asynchronous client request for the function called -Executing the required function via the appDataAccess.inc.php file. -Setting the HTTP/1.1 headers to the appropriate content type based on what is returned to the calling client. -Returning the requested data from the database and relative application info in JSON, HTML or JavaScript.