📄 webservice.php.svn-base
字号:
$this->__typedef["{urn:$this->namespace}kt_client_policies_array"] = array( array( 'policies' => "{urn:$this->namespace}kt_client_policy" ) ); $this->__typedef["{urn:$this->namespace}kt_client_policies_response"] = array( 'status_code' => 'int', 'message' => 'string', 'policies' => "{urn:$this->namespace}kt_client_policies_array" ); /* methods */ if (defined('HAS_SEARCH_FUNCTIONALITY')) { $this->__dispatch_map['search'] = array( 'in' => array('session_id' => 'string', 'search'=>'string' ,'options'=>'string'), 'out' => array('return' => "{urn:$this->namespace}kt_search_response" ), ); } // login $this->__dispatch_map['login'] = array('in' => array('username' => 'string', 'password' => 'string', 'ip' => 'string'), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); // anonymous_login $this->__dispatch_map['anonymous_login'] = array('in' => array('ip' => 'string'), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); // logout $this->__dispatch_map['logout'] = array('in' => array('session_id' => 'string' ), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); // get_folder_detail $this->__dispatch_map['get_folder_detail'] = array('in' => array('session_id' => 'string', 'folder_id' => 'int' ), 'out' => array('return' => "{urn:$this->namespace}kt_folder_detail"), ); if ($this->version >=3) { $this->__dispatch_map['get_folder_detail']['in'] = array('session_id' => 'string', 'folder_id' => 'int', 'create'=>'boolean' ); } // get_documents_by_oem_no $this->__dispatch_map['get_documents_by_oem_no'] = array('in' => array('session_id' => 'string', 'oem_no' => 'string', 'detail' => 'string'), 'out' => array('return' => "{urn:$this->namespace}kt_document_collection_response"), ); // get_folder_detail_by_name $this->__dispatch_map['get_folder_detail_by_name'] = array('in' => array('session_id' => 'string', 'folder_name' => 'string' ), 'out' => array('return' => "{urn:$this->namespace}kt_folder_detail"), ); if ($this->version >=3) { $this->__dispatch_map['get_folder_detail_by_name']['in'] = array('session_id' => 'string', 'folder_id' => 'int', 'create'=>'boolean' ); } // get_folder_contents $this->__dispatch_map['get_folder_contents'] = array('in' => array('session_id'=>'string','folder_id'=>'int','depth'=>'int','what'=>'string'), 'out' => array('return' => "{urn:$this->namespace}kt_folder_contents"), ); // create_folder $this->__dispatch_map['create_folder'] = array('in' => array('session_id'=>'string','folder_id'=>'int','folder_name' =>'string'), 'out' => array('return' => "{urn:$this->namespace}kt_folder_detail"), ); if ($this->version >=2) { // create_folder $this->__dispatch_map['add_folder'] = array('in' => array('session_id'=>'string','folder_id'=>'int','folder_name' =>'string'), 'out' => array('return' => "{urn:$this->namespace}kt_folder_detail"), 'alias'=>'create_folder' ); } // delete_folder $this->__dispatch_map['delete_folder'] = array('in' => array('session_id'=>'string','folder_id'=>'int','reason' =>'string'), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); // rename_folder $this->__dispatch_map['rename_folder'] = array('in' => array('session_id'=>'string','folder_id'=>'int','newname' =>'string'), 'out' => array('return' => "{urn:$this->namespace}kt_response"), ); // get_document_links $this->__dispatch_map['get_document_links'] = array('in' => array('session_id'=>'string','document_id'=>'int'), 'out' => array('return' => "{urn:$this->namespace}kt_linked_document_response" ), ); // link_documents $this->__dispatch_map['link_documents'] = array('in' => array('session_id'=>'string','parent_document_id'=>'int','child_document_id'=>'int','type'=>'string'), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); // unlink_documents $this->__dispatch_map['unlink_documents'] = array('in' => array('session_id'=>'string','parent_document_id'=>'int','child_document_id'=>'int'), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); // copy_folder $this->__dispatch_map['copy_folder'] = array('in' => array('session_id'=>'string','source_id'=>'int','target_id'=>'int','reason' =>'string'), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); if ($this->version >= 2) { $this->__dispatch_map['copy_folder']['out'] = array('return' => "{urn:$this->namespace}kt_folder_detail" ); } // move_folder $this->__dispatch_map['move_folder'] = array('in' => array('session_id'=>'string','source_id'=>'int','target_id'=>'int','reason' =>'string'), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); if ($this->version >= 2) { $this->__dispatch_map['move_folder']['out'] = array('return' => "{urn:$this->namespace}kt_folder_detail" ); } // get_document_detail $this->__dispatch_map['get_document_detail'] = array( 'in' => array('session_id' => 'string', 'document_id' => 'int' ), 'out' => array('return' => "{urn:$this->namespace}kt_document_detail"), ); if ($this->version >= 2) { $this->__dispatch_map['get_document_detail']['in'] = array('session_id' => 'string', 'document_id' => 'int', 'detail'=>'string' ); } // checkin_document $this->__dispatch_map['checkin_document'] = array('in' => array('session_id'=>'string','document_id'=>'int','filename'=>'string','reason' =>'string','tempfilename' =>'string', 'major_update'=>'boolean' ), 'out' => array( 'return' => "{urn:$this->namespace}kt_document_detail" ), ); // checkin_small_document $this->__dispatch_map['checkin_small_document'] = array('in' => array('session_id'=>'string','document_id'=>'int','filename'=>'string','reason' =>'string','base64' =>'string', 'major_update'=>'boolean' ), 'out' => array( 'return' => "{urn:$this->namespace}kt_document_detail" ), ); // checkin_base64_document $this->__dispatch_map['checkin_base64_document'] = array('in' => array('session_id'=>'string','document_id'=>'int','filename'=>'string','reason' =>'string','base64' =>'string', 'major_update'=>'boolean' ), 'out' => array( 'return' => "{urn:$this->namespace}kt_document_detail" ), 'alias' => 'checkin_small_document' ); if ($this->version >= 2) { $this->__dispatch_map['checkin_base64_document_with_metadata'] = array('in' => array('session_id'=>'string','document_id'=>'int','filename'=>'string','reason' =>'string','base64' =>'string', 'major_update'=>'boolean', 'metadata'=>"{urn:$this->namespace}kt_metadata_fieldsets",'sysdata'=>"{urn:$this->namespace}kt_sysdata" ), 'out' => array( 'return' => "{urn:$this->namespace}kt_document_detail" ), 'alias'=>'checkin_small_document_with_metadata' ); $this->__dispatch_map['checkin_document_with_metadata'] = array('in' => array('session_id'=>'string','document_id'=>'int','filename'=>'string','reason' =>'string','tempfilename' =>'string', 'major_update'=>'boolean', 'metadata'=>"{urn:$this->namespace}kt_metadata_fieldsets",'sysdata'=>"{urn:$this->namespace}kt_sysdata" ), 'out' => array( 'return' => "{urn:$this->namespace}kt_document_detail" ) ); } if($this->version >= 3){ //add folder shortcut $this->__dispatch_map['create_folder_shortcut'] = array('in'=>array('session_id'=>'string','target_folder_id'=>'int','source_folder_id'=>'int'), 'out'=>array('return' => "{urn:$this->namespace}kt_folder_detail" )); //add document shortcut $this->__dispatch_map['create_document_shortcut'] = array('in'=>array('session_id'=>'string','target_folder_id'=>'int','source_document_id'=>'int'), 'out'=>array('return' => "{urn:$this->namespace}kt_document_detail" )); //get document shortcuts $this->__dispatch_map['get_document_shortcuts'] = array('in'=>array('session_id'=>'string','document_id'=>'int'), 'out'=>array('return' => "{urn:$this->namespace}kt_document_shortcuts" )); //get folder shortcuts $this->__dispatch_map['get_folder_shortcuts'] = array('in'=>array('session_id'=>'string','folder_id'=>'int'), 'out'=>array('return' => "{urn:$this->namespace}kt_folder_shortcuts" )); } // add_document $this->__dispatch_map['add_document'] = array('in' => array('session_id'=>'string','folder_id'=>'int','title'=>'string','filename'=>'string','documentype' =>'string','tempfilename' =>'string' ), 'out' => array( 'return' => "{urn:$this->namespace}kt_document_detail" ), ); // add_small_document $this->__dispatch_map['add_small_document'] = array('in' => array('session_id'=>'string','folder_id'=>'int','title'=>'string','filename'=>'string','documentype' =>'string','base64' =>'string' ), 'out' => array( 'return' => "{urn:$this->namespace}kt_document_detail" ), ); // add_base64_document $this->__dispatch_map['add_base64_document'] = array('in' => array('session_id'=>'string','folder_id'=>'int','title'=>'string','filename'=>'string','documentype' =>'string','base64' =>'string' ), 'out' => array( 'return' => "{urn:$this->namespace}kt_document_detail" ), 'alias' => 'add_small_document' ); if ($this->version >= 2) { $this->__dispatch_map['add_base64_document_with_metadata'] = array('in' => array('session_id'=>'string','folder_id'=>'int','title'=>'string','filename'=>'string','documentype' =>'string','base64' =>'string', 'metadata'=>"{urn:$this->namespace}kt_metadata_fieldsets",'sysdata'=>"{urn:$this->namespace}kt_sysdata" ), 'out' => array( 'return' => "{urn:$this->namespace}kt_document_detail" ), 'alias'=>'add_small_document_with_metadata' ); $this->__dispatch_map['add_document_with_metadata'] = array('in' => array('session_id'=>'string','folder_id'=>'int','title'=>'string','filename'=>'string','documentype' =>'string','tempfilename' =>'string', 'metadata'=>"{urn:$this->namespace}kt_metadata_fieldsets",'sysdata'=>"{urn:$this->namespace}kt_sysdata" ), 'out' => array( 'return' => "{urn:$this->namespace}kt_document_detail" ) ); } // get_document_detail_by_name $this->__dispatch_map['get_document_detail_by_name'] = array('in' => array('session_id' => 'string', 'document_name' => 'string', 'what'=>'string' ), 'out' => array('return' => "{urn:$this->namespace}kt_document_detail"), ); if ($this->version >= 2) { $this->__dispatch_map['get_document_detail_by_name']['in'] = array('session_id' => 'string', 'folder_id'=>'int', 'document_name' => 'string', 'what'=>'string', 'detail'=>'string' ); $this->__dispatch_map['get_document_detail_by_title'] = array( 'in' => array('session_id' => 'string', 'folder_id'=>'int', 'title' => 'string', 'detail'=>'string' ), 'out' => array('return' => "{urn:$this->namespace}kt_document_detail"), ); $this->__dispatch_map['get_document_detail_by_filename'] = array( 'in' => array('session_id' => 'string', 'folder_id'=>'int', 'filename' => 'string', 'detail'=>'string' ), 'out' => array('return' => "{urn:$this->namespace}kt_document_detail"), ); } // checkout_document $this->__dispatch_map['checkout_document'] = array('in' => array('session_id'=>'string','document_id'=>'int','reason' =>'string'), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); if ($this->version >= 2) { $this->__dispatch_map['checkout_document'] = array('in' => array('session_id'=>'string','document_id'=>'int','reason' =>'string','download'=>'boolean'), 'out' => array('return' => "{urn:$this->namespace}kt_document_detail" ), ); } // checkout_small_document $this->__dispatch_map['checkout_small_document'] = array('in' => array('session_id'=>'string','document_id'=>'int','reason' =>'string','download' => 'boolean'), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); if ($this->version >= 2) { $this->__dispatch_map['checkout_small_document']['out'] = array('return' => "{urn:$this->namespace}kt_document_detail" ); } // checkout_base64_document $this->__dispatch_map['checkout_base64_document'] = array('in' => array('session_id'=>'string','document_id'=>'int','reason' =>'string','download' => 'boolean'), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), 'alias' => 'checkout_small_document' ); if ($this->version >= 2) { $this->__dispatch_map['checkout_base64_document']['out'] = array('return' => "{urn:$this->namespace}kt_document_detail" ); } // undo_document_checkout $this->__dispatch_map['undo_document_checkout'] = array('in' => array('session_id'=>'string','document_id'=>'int','reason' =>'string'), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); if ($this->version >= 2) { $this->__dispatch_map['undo_document_checkout']['out'] = array('return' => "{urn:$this->namespace}kt_document_detail" ); } // download_document $this->__dispatch_map['download_document'] = array('in' => array('session_id'=>'string','document_id'=>'int' ), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); // download_small_document $this->__dispatch_map['download_small_document'] = array('in' => array('session_id'=>'string','document_id'=>'int' ), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), ); // download_base64_document $this->__dispatch_map['download_base64_document'] = array('in' => array('session_id'=>'string','document_id'=>'int' ), 'out' => array('return' => "{urn:$this->namespace}kt_response" ), 'alias' => 'download_small_document' ); if ($this->version >= 3) { $this->__dispatch_map['download_document']['in'] = array('session_id'=>'string','document_id'=>'int', 'version'=>'string' ); $this->__dispatch_map['download_small_document']['in'] = array('session_id'=>'string','document_id'=>'int', 'version'=>'string' ); $this->__dispatch_map['download_base64_document']['in'] = array('session_id'=>'string','document_id'=>'int', 'version'=>'string' ); } // delete_document $this->__dispatch_map['delete_document'] = array('in' => array('session_id'=>'string','document_id'=>'int','reason'=>'string'), 'out' => array( 'return' => "{urn:$this->namespace}kt_response" ), ); // change_document_owner $this->__dispatch_map['change_document_owner'] = array('in' => array('session_id'=>'string','document_id'=>'int','username'=>'string','reason'=>'string'), 'out' => array( 'return' => "{urn:$this->namespace}kt_response" ), ); if ($this->version >= 2) { $this->__dispatch_map['change_document_owner']['out'] = array( 'return' => "{urn:$this->namespace}kt_document_detail" ); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -