Update web view

This commit is contained in:
2014-11-27 18:27:31 +01:00
parent e9e0e35c12
commit 54945703b6
3 changed files with 37 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ class User
public $id;
public $accounts;
public $categories;
public $tags;
public $preferences;
function GetCategory($id)
@@ -44,6 +45,22 @@ class User
return LoadCategory($this, $id);
}
function GetTag($id)
{
if ($id == "" || $id == "0")
{
$tag["id"] = 0;
$tag["name"] = "";
return $tag;
}
foreach($this->tags as $i => $tag)
if ($tag["id"] == "$id") return $tag;
return LoadTag($this, $id);
}
function IsAccountBlocked($id)
{
foreach($this->accounts as $i => $account)