Changeset 5633


Ignore:
Timestamp:
03/05/12 17:47:25 (12 years ago)
Author:
niltonneto
Message:

Ticket #2507 - Adicionado método que retorna versão instalada do Expresso.

Location:
sandbox/webservice/api
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/json-rpc/Expresso.php

    r5595 r5633  
    33class Expresso { 
    44 
     5        protected $expressoVersion; 
    56        var $result; 
    67        var $error; 
     
    910         
    1011        function __construct($id){               
     12                $this->expressoVersion = substr($GLOBALS['phpgw_info']['server']['versions']['phpgwapi'],0,3); 
    1113                $this->result   = null; 
    1214                $this->error    = null;                                          
     
    3436        }        
    3537         
     38        public function getExpressoVersion(){            
     39                $this->result = array('expressoVersion' =>  $this->expressoVersion); 
     40                return $this->getResponse(); 
     41        } 
    3642         
    3743        public function login($params){ 
  • sandbox/webservice/api/webservice.php

    r5595 r5633  
    55        "Expresso.login", 
    66        "Expresso.logout", 
     7        "Expresso.getExpressoVersion", 
    78        "Mail.getUserFolders", 
    89        "Mail.getUserMessages" 
Note: See TracChangeset for help on using the changeset viewer.