2009-04-20 00:13:21 +02:00
/*
* This file is a part of CMSLU - - Content Management System like Unix
* and is not publicly distributed
*
2009-04-21 22:50:55 +02:00
* Copyright ( c ) 2008 - 2009 , Tomasz Sowa
2009-04-20 00:13:21 +02:00
* All rights reserved .
*
*/
# include "content.h"
2009-04-21 22:50:55 +02:00
# include "../core/request.h"
# include "../core/db.h"
# include "../core/data.h"
# include "../core/mount.h"
2009-04-20 00:13:21 +02:00
void Content : : FunThread ( )
{
// we're showing the whole directory
Item item_ref ;
item_ref . parent_id = request . dir_table . back ( ) - > id ;
// !! zrobic inna metode, inny interfejs (jako parametr niech bierze parent_id), i zeby nie odczytywala contentu i subjectu (a moze tylko subject? przyda sie przy ls -l)
2009-04-21 01:49:28 +02:00
bool asc = true ;
Mount mount = data . mounts . GetCurrentMountPoint ( ) ;
if ( mount . IsParam ( Mount : : desc ) )
asc = false ;
db . GetItems ( request . item_table , item_ref , asc ) ;
2009-04-20 00:13:21 +02:00
}