Constructor
-
KTWSAPI
$ktapi
-
kt_document_detail
$kt_document_detail
-
&$ktapi
Changes the document type.
true
change_document_type
(string $documenttype)
Changes the owner of the document.
true
change_owner
(string $username, string $reason)
-
string
$username
-
string
$reason
Checks in a document.
true
checkin
(string $filename, string $reason, boolean $major_update)
-
string
$filename
-
string
$reason
-
boolean
$major_update
Checks out a document.
true
checkout
(string $reason, [string $localpath = null])
-
string
$reason
-
string
$localpath
Copies the document to the specified folder.
void
copy
(
&$folder,
string $reason, [
string $newtitle =
''], [
string $newfilename =
''],
KTWSAPI_Folder $folder)
-
KTWSAPI_Folder
$folder
-
string
$reason
-
string
$newtitle
-
string
$newfilename
-
&$folder
Deletes the current document.
true
delete
(string $reason)
Removes the workflow process from the current document.
true
delete_workflow
()
Download a version of the document
true
download
([string $version = null], [string $localpath = null])
-
string
$version
-
string
$localpath
Returns a reference to a document.
-
KTWSAPI
$ktapi
-
int
$documentid
-
boolean
$loadinfo
-
&$ktapi
Returns metadata on the document.
kt_metadata_response
get_metadata
()
Returns the transaction history on the current document.
kt_document_transaction_history
get_transaction_history
()
Returns the version history on the current document.
$kt_document_version_history
get_version_history
()
Moves the current folder to the specified folder.
true
move
(
&$folder,
string $reason, [
string $newtitle =
''], [
string $newfilename =
''],
KTWSAPI_Folder $folder)
-
KTWSAPI_Folder
$folder
-
string
$reason
-
string
$newtitle
-
string
$newfilename
-
&$folder
Performs a transition on the current document.
true
perform_workflow_transition
(string $transition, string $reason)
-
string
$transition
-
string
$reason
Renames the filename of the current document.
true
rename_filename
(string $newfilename)
Renames the title of the current document.
true
rename_title
(string $newtitle)
Starts a workflow on the current document.
true
start_workflow
(string $workflow)
Undo a document checkout
true
undo_checkout
(string $reason)
Updates the metadata on the current document.
true
update_metadata
(kt_metadata $metadata)
Inherited Methods
Inherited From KTWSAPI_FolderItem
KTWSAPI_FolderItem::get_parent_folder()
KTWSAPI_FolderItem::_download_file()
KTWSAPI_FolderItem::_upload_file()