Class KTAPI_Folder

Description

Located in /ktapi/ktapi.inc.php (line 337)

KTAPI_FolderItem
   |
   --KTAPI_Folder
Variable Summary
Folder $folder
int $folderid
Method Summary
KTAPI_Folder KTAPI_Folder ( &$ktapi,  &$folder, KTAPI $ktapi, Folder $folder)
KTAPI_Document &add_document (string $title, string $filename, string $documenttype, string $tempfilename)
KTAPI_Folder &add_folder (string $foldername)
true copy (KTAPI_Folder $ktapi_target_folder, [string $reason = ''])
true delete (string $reason)
KTAPI_Folder &get ( &$ktapi, int $folderid, KTAPI $ktapi)
array get_detail ()
KTAPI_Document &get_document_by_filename (string $documentname)
KTAPI_Document &get_document_by_name (string $documentname)
Folder &get_folder ()
int get_folderid ()
KTAPI_Folder &get_folder_by_name (string $foldername)
void get_folder_name ()
void get_full_path ()
void get_listing ([ $depth = 1], [ $what = 'DF'])
array get_permissions ()
true move (KTAPI_Folder $ktapi_target_folder, [string $reason = ''])
true rename (string $newname)
KTAPI_Document &_get_document_by_name (string $documentname, [string $function = 'getByNameAndFolder'])
Variables
Folder $folder (line 345)

This is a reference to a base Folder object.

  • access: private
int $folderid (line 353)

This is the id of the folder on the database.

  • access: private

Inherited Variables

Inherited from KTAPI_FolderItem

KTAPI_FolderItem::$ktapi
Methods
Constructor KTAPI_Folder (line 395)

This is the constructor for the KTAPI_Folder.

  • access: private
KTAPI_Folder KTAPI_Folder ( &$ktapi,  &$folder, KTAPI $ktapi, Folder $folder)
  • KTAPI $ktapi
  • Folder $folder
  • &$ktapi
  • &$folder
add_document (line 687)

This adds a document to the current folder.

  • access: public
KTAPI_Document &add_document (string $title, string $filename, string $documenttype, string $tempfilename)
  • string $title: This is the title for the file in the repository.
  • string $filename: This is the filename in the system for the file.
  • string $documenttype: This is the name or id of the document type. It first looks by name, then by id.
  • string $tempfilename: This is a reference to the file that is accessible locally on the file system.
add_folder (line 740)

This adds a subfolder folder to the current folder.

  • access: public
KTAPI_Folder &add_folder (string $foldername)
  • string $foldername
copy (line 864)

This copies a folder to another location.

true copy (KTAPI_Folder $ktapi_target_folder, [string $reason = ''])
delete (line 769)

This deletes the current folder.

true delete (string $reason)
  • string $reason
get (line 363)

This is used to get a folder based on a folder id.

  • access: private
KTAPI_Folder &get ( &$ktapi, int $folderid, KTAPI $ktapi)
  • KTAPI $ktapi
  • int $folderid
  • &$ktapi
get_detail (line 419)

This returns detailed information on the document.

array get_detail ()
get_document_by_filename (line 559)

This can resolve a document relative to the current directy by filename .

  • access: public
KTAPI_Document &get_document_by_filename (string $documentname)
  • string $documentname
get_document_by_name (line 547)

This can resolve a document relative to the current directy by name.

  • access: public
KTAPI_Document &get_document_by_name (string $documentname)
  • string $documentname
get_folder (line 408)

This returns a reference to the internal folder object.

  • access: protected
Folder &get_folder ()
get_folderid (line 447)

This returns the folderid.

int get_folderid ()
get_folder_by_name (line 459)

This can resolve a folder relative to the current directy by name

  • access: public
KTAPI_Folder &get_folder_by_name (string $foldername)
  • string $foldername
get_folder_name (line 436)
void get_folder_name ()
get_full_path (line 484)
void get_full_path ()
get_listing (line 564)
void get_listing ([ $depth = 1], [ $what = 'DF'])
  • $depth
  • $what
get_parent_folder_id (line 431)
void get_parent_folder_id ()
get_permissions (line 899)

This returns all permissions linked to the folder.

  • access: public
array get_permissions ()
get_transaction_history (line 910)

This returns a transaction history listing.

  • access: public
array get_transaction_history ()
move (line 829)

This moves the folder to another location.

true move (KTAPI_Folder $ktapi_target_folder, [string $reason = ''])
rename (line 801)

This renames the folder

true rename (string $newname)
  • string $newname
_get_document_by_name (line 499)

This gets a document by filename or name.

  • access: private
KTAPI_Document &_get_document_by_name (string $documentname, [string $function = 'getByNameAndFolder'])
  • string $documentname
  • string $function

Inherited Methods

Inherited From KTAPI_FolderItem

KTAPI_FolderItem::can_user_access_object_requiring_permission()

Documentation generated on Sun, 22 Apr 2007 02:30:53 +0200 by phpDocumentor 1.3.2