Inherits DataItem.
Definition at line 7 of file share_token.inc.
◆ Accesses()
ShareToken::Accesses |
( |
|
$constraint = "ORDER BY access_timestamp" | ) |
|
◆ countViews()
ShareToken::countViews |
( |
| ) |
|
Definition at line 38 of file share_token.inc.
40 return Query::create(
'ShareAccess',
"WHERE share_id=:s")
41 ->bind(
":s", $this->share_id)
◆ forObject()
static ShareToken::forObject |
( |
|
$obj | ) |
|
|
static |
Definition at line 64 of file share_token.inc.
67 $key =
$obj->getPrimaryKeyValue();
69 $matches = Query::create(
ShareToken,
"WHERE item_type=:t AND item_key=:k")
70 ->bind(
":t",
$type,
":k", $key)
73 return count($matches) > 0 ? $matches[0] :
null;
◆ getShare()
static ShareToken::getShare |
( |
|
$token | ) |
|
|
static |
Definition at line 45 of file share_token.inc.
47 if (!checkPlainGUID(
$token))
54 return Query::create(
ShareToken,
"WHERE token=:t")
58 catch(DataNotFoundException $e)
FakoliException is the base exception class for all Fakoli errors.
◆ getTitle()
◆ User()
Definition at line 26 of file share_token.inc.
26 {
return $this->getRelated(
'SiteUser'); }
◆ $fields
Initial value:= array("share_id" => Number,
"token" => String,
"item_type" => String,
"item_key" => Number,
"active" => Boolean,
"user_id" => Number,
"created_date" => DateTime,
"last_updated" => DateTime,
"last_updated_by_id" => Number
)
Definition at line 12 of file share_token.inc.
◆ $primary_key
ShareToken::$primary_key = "share_id" |
◆ $relations
Initial value:= array( "User" => 'SiteUser',
"Accesses" => 'ShareAccess')
Definition at line 23 of file share_token.inc.
◆ $table
ShareToken::$table = "share_token" |
The documentation for this class was generated from the following file: