changed organization of static files

removed: item.auth item.auth_path
added:   item.file_path, item.file_fs, item.file_type
now the path to a static file is a relative path
added: thumbnails (not finished yet)
fixed: db didn't correctly return the number of deleted items /DelItem() method/




git-svn-id: svn://ttmath.org/publicrep/winix/trunk@696 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-12-10 21:07:01 +00:00
parent 9b29cce1a4
commit 36c8822e6c
41 changed files with 435 additions and 364 deletions

View File

@@ -14,15 +14,15 @@
DbItemQuery::DbItemQuery()
{
sort_asc = true;
auth_equal = true;
sort_asc = true;
file_type_equal = true;
SetAll(true, false);
id = -1;
parent_id = -1;
type = Item::none;
auth = Item::auth_none;
file_type = WINIX_ITEM_FILETYPE_NONE;
limit = 0; // limit and offset not used by default
offset = 0;
@@ -43,7 +43,7 @@ void DbItemQuery::SetAllSel(bool sel)
sel_url = sel;
sel_type = sel;
sel_default_item = sel;
sel_auth = sel;
sel_file = sel;
sel_html_template = sel;
}
@@ -54,7 +54,7 @@ void DbItemQuery::SetAllWhere(bool where_)
where_id = where_;
where_parent_id = where_;
where_type = where_;
where_auth = where_;
where_file_type = where_;
}
@@ -91,11 +91,11 @@ void DbItemQuery::WhereType(Item::Type type_)
void DbItemQuery::WhereAuth(Item::Auth st, bool equal)
void DbItemQuery::WhereFileType(int file_t, bool equal)
{
where_auth = true;
auth = st;
auth_equal = equal;
where_file_type = true;
file_type = file_t;
file_type_equal = equal;
}