Strict Standards: Declaration of action_plugin_importoldindex::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/html/lib/plugins/importoldindex/action.php on line 8

Strict Standards: Declaration of action_plugin_popularity::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/html/lib/plugins/popularity/action.php on line 57

Strict Standards: Declaration of action_plugin_safefnrecode::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/html/lib/plugins/safefnrecode/action.php on line 66

Strict Standards: Declaration of action_plugin_importoldchangelog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/html/lib/plugins/importoldchangelog/action.php on line 182

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/lib/plugins/importoldindex/action.php:8) in /var/www/html/inc/actions.php on line 180
 cor4:app:objects:cxbase [Cor4 WIki]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cor4:app:objects:cxbase [2006/03/30 22:48]
ivivan
cor4:app:objects:cxbase [2021/01/05 11:39] (current)
Line 11: Line 11:
  
 ===== Metódusok ===== ===== Metódusok =====
 +
 +==== add_record ====
 +
 +''int add_record()''
 +
 +Új elemet fűz a fájl végére. Az új sor minden eleme üres, azt egy [[#set_record|set_record()]] hívással állíthatjuk be.
  
 ==== get_record ==== ==== get_record ====
Line 42: Line 48:
 A megadott számú recordot törlésre jelöli. A visszaadott érték **true**, ha már törlésre jelölt volt előtte is. A megadott számú recordot törlésre jelöli. A visszaadott érték **true**, ha már törlésre jelölt volt előtte is.
  
-==== getSection ====+==== get_fields ====
  
-''array getSection(string sect)''+''array get_fields()''
  
-''sect'' szekció bejegyzéseivel tér vissza.+mezők neveit tartalmazó tömbbel tér vissza.
  
-==== getSectionWithValues ====+==== get_numrecords ====
  
-''array getSectionWithValues(string sect)''+''int get_numrecords()''
  
-A ''sect'' szekció bejegyzéseivel és azok értékével tér vissza úgy, hogy visszatérési tömb minden egyes elemének kulcsa a bejegyzés neve, értéke a bejegyzés értéke.+Megadja recordok számát.
  
 ===== Példa ===== ===== Példa =====
Line 65: Line 71:
 for ($i=0;$i<$dbase->get_numrecords();$i++) { for ($i=0;$i<$dbase->get_numrecords();$i++) {
   $arr = $dbase->get_record($i);   $arr = $dbase->get_record($i);
-  foreach ($arr as $key=>$value) $arr[$key] = strtolower($key);+  foreach ($arr as $key=>$value) $arr[$key] = strtolower($value);
   $dbase->set_record($i,$arr);   $dbase->set_record($i,$arr);
 } }

cor4/app/objects/cxbase.1143758903.txt.gz · Last modified: 2021/01/05 11:42 (external edit)