Files
winix/functions/ls.cpp
Tomasz Sowa 9901c63ede removed some thread and ticket information from request
they are in FunThread and FunTicket classes now
added funtion FunUptime (I forgot about it)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@631 e52654a7-88a9-db11-a3e9-0013d4bc506e
2010-08-10 20:43:38 +00:00

55 lines
602 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 = "ls";
}
void Ls::MakeGet()
{
if( !request->is_item )
{
Db::ItemQuery iq;
iq.sel_content = false;
iq.WhereParentId(request->dir_tab.back()->id);
iq.WhereType(Item::file);
if( request->IsParam("ckeditor_browse") )
{
iq.WhereAuth(Item::auth_image);
db->GetItems(request->item_tab, iq);
}
else
{
db->GetItems(request->item_tab, iq);
}
}
}
} // namespace