ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

pr_sape_project_api.php
Go to the documentation of this file.
1 <?php
2
3 /*
4 * This source code is a part of the Ultimix Project.
5 * It is distributed under BSD license. All other third side source code (like tinyMCE) is distributed under
6 * it's own license wich could be found from the corresponding files or sources.
7 * This source code is provided "as is" without any warranties or garanties.
8 *
9 * Have a nice day!
10 *
11 * @url http://ultimix.sorceforge.net
12 *
13 * @author Alexey "gdever" Dodonov
14 */
15
26 class pr_sape_project_api_1_0_0{
27
38 var $SapeCommonApi = false;
39 var $SapeUtilities = false;
40 var $Security = false;
41
56 function __construct()
57 {
58 try
59 {
60 $this->SapeCommonApi = get_package( 'sape::sape_common_api' , 'last' , __FILE__ );
61 $this->SapeUtilities = get_package( 'sape::sape_utilities' , 'last' , __FILE__ );
62 $this->Security = get_package( 'security' , 'last' , __FILE__ );
63 }
64 catch( Exception $e )
65 {
66 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
67 }
68 }
69
88 function get_projects()
89 {
90 try
91 {
92 $Response = $this->SapeUtilities->call_method(
93 $this->SapeCommonApi->Client , 'sape_pr.project.index' , array() , 'Can\'t get projects'
94 );
95
96 return( php_xmlrpc_decode( $Response->value() ) );
97 }
98 catch( Exception $e )
99 {
100 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
101 }
102 }
103 }
104
105 ?>