mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
configDB - added new commands filelist and filedelete
git-svn-id: https://svn.fhem.de/fhem/trunk@5574 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
255e7efcc3
commit
be946b36e3
@ -682,6 +682,21 @@ sub _cfgDB_Filelist {
|
||||
return $ret;
|
||||
}
|
||||
|
||||
sub _cfgDB_Readlayout($) {
|
||||
my ($filename) = @_;
|
||||
my $fhem_dbh = _cfgDB_Connect;
|
||||
my $sth = $fhem_dbh->prepare( "SELECT line FROM fhemfilesave WHERE filename = '$filename'" );
|
||||
$sth->execute();
|
||||
my @layout;
|
||||
while (my @line = $sth->fetchrow_array()) {
|
||||
push @layout, "$line[0] ";
|
||||
}
|
||||
$sth->finish();
|
||||
$fhem_dbh->disconnect();
|
||||
return (int(@layout)) ? join("\n",@layout) : undef;
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
||||
=pod
|
||||
|
Loading…
x
Reference in New Issue
Block a user