/* * 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.WhereAuth(Item::auth_image); db->GetItems(request->item_tab, iq); } else { db->GetItems(request->item_tab, iq); } } } } // namespace