Combu Server
3.1.1
PHP API Documentation
|
Public Member Functions | |
__construct ($src=null, $stripSlashes=false) | |
Save () | |
Delete () | |
AddLike () | |
AddView () | |
ToArray () | |
ToArrayClient () | |
ToJsonClient () | |
Public Member Functions inherited from DataClass | |
Save () | |
Delete () | |
ToJson () | |
ToArray () | |
Static Public Member Functions | |
static | Load ($idAccount, $includeShared=false, $returnArray=false, $limit=NULL, $offset=NULL, &$count=NULL) |
static | LoadByUrl ($url) |
static | Prune () |
Static Public Member Functions inherited from DataClass | |
static | GetTableName ($class) |
static | LoadRecords ($query, $returnedClass="") |
static | CountRecords ($tableName, $filter=null) |
static | TruncateTable ($tableName) |
static | TruncateClass ($class) |
Data Fields | |
const | TABLE_NAME = "UserFile" |
$Id = 0 | |
$IdAccount = 0 | |
$Name = "" | |
$Url = "" | |
$ShareType = SHARETYPE_EVERYBODY | |
$Likes = 0 | |
$Views = 0 | |
$CustomData = "" | |
Additional Inherited Members | |
Protected Member Functions inherited from DataClass | |
_loadFilter ($tableName, $filter) | |
_loadByRow ($row, $stripSlashes=false, $callbackOnExists=false) | |
_Delete ($tableName, $filter=null) | |
Static Protected Member Functions inherited from DataClass | |
static | _count ($tableName, $filter=null) |
static | _load ($tableName, $returnedClass="", $where="", $order=null, $limit=null, $offset=null, &$count=null) |
static | _loadEx ($select, $from, $returnedClass="", $where="", $order=null, $limit=null, $offset=null, &$count=null, $debug=false) |
static | _loadQuery ($query, $returnedClass="") |
Class to handle User Files
Definition at line 12 of file UserFile.php.
__construct | ( | $src = null , |
|
$stripSlashes = false |
|||
) |
Contructor
Definition at line 28 of file UserFile.php.
AddLike | ( | ) |
Increments the Likes count
type $LoggedAccount
Definition at line 152 of file UserFile.php.
AddView | ( | ) |
Increments the Views count
type $LoggedAccount
Definition at line 184 of file UserFile.php.
Delete | ( | ) |
Delete the record from the database
Definition at line 114 of file UserFile.php.
|
static |
Get the registered files
int | $idAccount | Filter IdAccount |
boolean | $includeShared | If TRUE then it will include also the files shared by other users with the account |
boolean | $returnArray | If TRUE then it will return associative arrays else objects |
int | $limit | Max number of results (for paged results) |
int | $offset | Offset number of results (for paged results) |
int | $count | Will be set to the total count of results |
Definition at line 52 of file UserFile.php.
|
static |
Get a UserFile by Url
Database $Database
string | $url | Filter by Url |
Definition at line 69 of file UserFile.php.
|
static |
Delete all records associated to this class $Database
Definition at line 138 of file UserFile.php.
Save | ( | ) |
Save the record in the database
Definition at line 81 of file UserFile.php.
ToArray | ( | ) |
Definition at line 215 of file UserFile.php.
ToArrayClient | ( | ) |
Definition at line 228 of file UserFile.php.
ToJsonClient | ( | ) |
Definition at line 234 of file UserFile.php.
$CustomData = "" |
Definition at line 23 of file UserFile.php.
$Id = 0 |
Definition at line 16 of file UserFile.php.
$IdAccount = 0 |
Definition at line 17 of file UserFile.php.
$Likes = 0 |
Definition at line 21 of file UserFile.php.
$Name = "" |
Definition at line 18 of file UserFile.php.
$ShareType = SHARETYPE_EVERYBODY |
Definition at line 20 of file UserFile.php.
$Url = "" |
Definition at line 19 of file UserFile.php.
$Views = 0 |
Definition at line 22 of file UserFile.php.
const TABLE_NAME = "UserFile" |
Definition at line 14 of file UserFile.php.