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
55 lines
615 B
C++
Executable File
55 lines
615 B
C++
Executable File
/*
|
|
* This file is a part of Winix
|
|
* and is not publicly distributed
|
|
*
|
|
* Copyright (c) 2008-2010, Tomasz Sowa
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#include "ls.h"
|
|
|
|
|
|
|
|
|
|
namespace Fun
|
|
{
|
|
|
|
Ls::Ls()
|
|
{
|
|
fun.url = L"ls";
|
|
}
|
|
|
|
|
|
void Ls::MakeGet()
|
|
{
|
|
if( !request->is_item )
|
|
{
|
|
DbItemQuery iq;
|
|
|
|
iq.sel_content = false;
|
|
|
|
iq.WhereParentId(request->dir_tab.back()->id);
|
|
iq.WhereType(Item::file);
|
|
|
|
if( request->IsParam(L"ckeditor_browse") )
|
|
{
|
|
iq.WhereFileType(WINIX_ITEM_FILETYPE_IMAGE);
|
|
db->GetItems(request->item_tab, iq);
|
|
}
|
|
else
|
|
{
|
|
db->GetItems(request->item_tab, iq);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|