Functions


Functions Summary
int

cot_pfs_createfolder(int ownerid, string title, string desc, int parentid, boolean ispublic, boolean isgallery)

Create a new PFS folder, return new folder ID

int

cot_pfs_deleteall(int userid)

Delete all PFS files for a specific user.

boolean

cot_pfs_deletefile(int userid, int id)

Delete a PFS file

boolean

cot_pfs_deletefolder(int userid, int folderid)

Delete a PFS folder

string

cot_pfs_filepath(string id)

Returns path to file relative from user's/system directory

mixed

cot_pfs_folderpath(int id, boolean fullpath, mixed folderid)

Returns path to folder relative from user's/system directory

array

cot_pfs_limits(int userid)

Get filesize limits

boolean

cot_pfs_mkdir(string path, bool feedback)

Create a new directory

string

cot_pfs_path(int userid)

Returns PFS path for a user, relative from site root

string

cot_pfs_relpath(int userid)

Returns PFS path for a user, relative from PFS root

unknown

cot_pfs_thumbpath(unknown_type userid)

Returns absolute path

int

cot_pfs_upload(int userid, int folderid)

Upload one or more files, return parent folder ID

string

cot_selectbox_folders(int user, int skip, int check, string name)

Renders PFS folder selection dropdown

array

cot_userinfo(int id)

Fetches user entry from DB

Function Detail

modules\pfs\inc\pfs.functions.php at line 65

cot_pfs_createfolder

public int cot_pfs_createfolder(int ownerid, string title, string desc, int parentid, boolean ispublic, boolean isgallery)
Create a new PFS folder, return new folder ID
Parameters:
ownerid - Owners user ID
title - Folder title
desc - Folder description
parentid - Parent folder ID
ispublic - Public?
isgallery - Gallery?
Returns:

modules\pfs\inc\pfs.functions.php at line 207

cot_pfs_deleteall

public int cot_pfs_deleteall(int userid)
Delete all PFS files for a specific user. Returns number of items removed.
Parameters:
userid - User ID
Returns:

modules\pfs\inc\pfs.functions.php at line 117

cot_pfs_deletefile

public boolean cot_pfs_deletefile(int userid, int id)
Delete a PFS file
Parameters:
userid - User ID
id - File ID
Returns:

modules\pfs\inc\pfs.functions.php at line 155

cot_pfs_deletefolder

public boolean cot_pfs_deletefolder(int userid, int folderid)
Delete a PFS folder
Parameters:
userid - User ID
folderid - Folder ID
Returns:

modules\pfs\inc\pfs.functions.php at line 254

cot_pfs_filepath

public string cot_pfs_filepath(string id)
Returns path to file relative from user's/system directory
Parameters:
id - File ID
Returns:

modules\pfs\inc\pfs.functions.php at line 276

cot_pfs_folderpath

public mixed cot_pfs_folderpath(int id, boolean fullpath, mixed folderid)
Returns path to folder relative from user's/system directory
Parameters:
id - Folder ID
fullpath - Return full path like in Folder Storage Mode ?
Returns:

modules\pfs\inc\pfs.functions.php at line 307

cot_pfs_limits

public array cot_pfs_limits(int userid)
Get filesize limits
Parameters:
userid - User ID
Returns:

modules\pfs\inc\pfs.functions.php at line 329

cot_pfs_mkdir

public boolean cot_pfs_mkdir(string path, bool feedback)
Create a new directory
Parameters:
path - Path relative to site root $param boolean $feedback Prevent endless loop
Returns:

modules\pfs\inc\pfs.functions.php at line 357

cot_pfs_path

public string cot_pfs_path(int userid)
Returns PFS path for a user, relative from site root
Parameters:
userid - User ID
Returns:

modules\pfs\inc\pfs.functions.php at line 377

cot_pfs_relpath

public string cot_pfs_relpath(int userid)
Returns PFS path for a user, relative from PFS root
Parameters:
userid - User ID
Returns:

modules\pfs\inc\pfs.functions.php at line 397

cot_pfs_thumbpath

public unknown cot_pfs_thumbpath(unknown_type userid)
Returns absolute path
Parameters:
Returns:

modules\pfs\inc\pfs.functions.php at line 419

cot_pfs_upload

public int cot_pfs_upload(int userid, int folderid)
Upload one or more files, return parent folder ID
Parameters:
userid - User ID
folderid - Folder ID
Returns:

modules\pfs\inc\pfs.functions.php at line 591

cot_selectbox_folders

public string cot_selectbox_folders(int user, int skip, int check, string name)
Renders PFS folder selection dropdown
Parameters:
user - User ID
skip - Skip folder
check - Checked folder
name - Input name
Returns:

modules\pfs\inc\pfs.functions.php at line 627

cot_userinfo

public array cot_userinfo(int id)
Fetches user entry from DB
Parameters:
id - User ID
Returns: