Cosa.php

From COREPHP

Jump to: navigation, search
   <?php
   
    /**
     * Defines an interface to work with WebServices
     * 
     * @author Pablo Santiago Sánchez <phackwer@gmail.com>
     * @copyright Copyright (c) 2008, Pablo Santiago Sánchez
     * @license http://opensource.org/licenses/bsd-license.php BSD License
     * @package cosa
     */
   
    /**
     * Defines an interface to work with WebServices
     * this class is suposed only to be interfaced
     * 
     * @package cosa
     */
    interface COSA
    {
         /**
          * Method for View loading
          * @param string $cosa_interface Interface to be loaded
          * @return string Code of the loaded interface 
          */
         public function loadInterface ($cosa_interface);
    
         /**
          * Method for Login
          * @param string $cosa_user Login of the user
          * @param string $cosa_pass Password of the user
          * @return string 
          */
         public function doLogin ($cosa_user, $cosa_pass);
         
         /**
          * Method for Logout
          * @param string $cosa_params Any given parameter (not required)
          * @return string 
          */
         public function doLogout ($cosa_params = null);
   
         /**
          * Method for loading data to the View layer
          * @param string $cosa_service Name of the Control
          * @param string $cosa_method Name of the Method
          * @param string $cosa_params Any given parameter
          * @return string 
          */
         public function getData ($cosa_service, $cosa_method, $cosa_params);
         
         /**
          * Method for receiving data from the View layer
          * @param string $cosa_service Name of the Control
          * @param string $cosa_method Name of the Method
          * @param string $cosa_params Any given parameter
          * @return string 
          */
         public function postData ($cosa_service, $cosa_method, $cosa_params);
   
         /**
          * Method for loading data to the View layer
          * @param string $cosa_params Any given parameter
          * @return string 
          */
         public function loadReport ($cosa_params);
    }
    
   ?>
This page was last modified on 11 August 2009, at 02:54. This page has been accessed 50 times.