Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Esmith::DB
(view source)
Revision as of 05:29, 22 January 2015
309 bytes added
,
05:29, 22 January 2015
→get_all
Line 111:
Line 111:
Gets all the records out of the given $db as a list of esmith::DB::Record objects.
Gets all the records out of the given $db as a list of esmith::DB::Record objects.
+
+
here an example
+
+
{
+
# Purge quoting chars in comments to fix bug 8723 & bug 8806
+
foreach my $host ($DB->get_all)
+
{
+
my $comment = $host->prop('Comment');
+
next unless $comment;
+
$comment =~ s/['"]//g;
+
$host->merge_props(Comment => $comment);
+
}
+
}
==== Concrete methods ====
==== Concrete methods ====
Stephdl
Administrators
5,576
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search