Warning: Declaration of action_plugin_acl::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/acl/action.php on line 15

Warning: Declaration of action_plugin_description::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/description/action.php on line 0

Warning: Declaration of action_plugin_googleanalytics::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/googleanalytics/action.php on line 0

Warning: Declaration of action_plugin_keywords::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/keywords/action.php on line 0

Warning: Declaration of action_plugin_popularity::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/popularity/action.php on line 0

Warning: Declaration of action_plugin_safefnrecode::register(Doku_Event_Handler &$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/safefnrecode/action.php on line 0

Warning: Declaration of action_plugin_translation::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/translation/action.php on line 0

Warning: Declaration of action_plugin_authad::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/authad/action.php on line 0

Warning: Declaration of action_plugin_extension::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/extension/action.php on line 0

Warning: Declaration of action_plugin_styling::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/styling/action.php on line 0

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/acl/action.php:15) in /var/www/iptv.gen12/public_html/dokuwiki/inc/actions.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/acl/action.php:15) in /var/www/iptv.gen12/public_html/dokuwiki/lib/tpl/dokuwiki/main.php on line 12
Database [SimpleTV]

Инструменты сайта


mantis:simpletv:api:database

Database

boolean = ExecuteSql(string_utf8 SQL,boolean show_error (opt))

Description
Execute action SQL
Parameters
SQL - sql string_utf8 
show_error - show error as MsgBox
Return Value
true/false - 

table or nil = GetTable(string_utf8 SQL,boolean show_error(opt))

SimpleTV ver
SimpleTV v.0.4.8 b8 or above
Description
Returns the SQL query as table
keys(name of fields) in table are ANSI string  
string values in table are UTF8 string    
Parameters
SQL - sql string_utf8 
show_error - show error as MsgBox
Return Value
on success - returns table
on error - returns nil
Sample
local t = m_simpleTV.Database.GetTable("SELECT Main.Id, Main.Name FROM Main;",true)
if t==nil then return end 
for i,w in pairs(t) do   --debug it 
for r,e in pairs(w) do 
    debug_in_file( r .. '=' .. e .. '|' ) 
end
debug_in_file('\n') 
end

RefreshChannelList(ID number(opt),UpdateIMG boolean(opt))

Moved to PlayList

SaveCurrentChannelConfig()

SimpleTV ver
SimpleTV v.0.4.8 b8 or above
Description
Save cached info of current playing channel into DB. This is necessary to prepare for changing channel info directly in DB.

LoadCurrentChannelConfig()

SimpleTV ver
SimpleTV v.0.4.8 b8 or above
Description
Load current playing channel info from DB
mantis/simpletv/api/database.txt · Последние изменения: 20/10/2015 15:02 — SergeyVS