[[dbKeys()]]
 

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
en:create:functions:dbkeys [24.01.2015 14:12] alexander.ritteren:create:functions:dbkeys [29.01.2025 13:38] (current) robin.bodenberger
Line 1: Line 1:
 ====== dbKeys() ====== ====== dbKeys() ======
  
-The function ''dbKeys()'' lists all keys stored in the **Database for Contents**. If a //subKey// is specified, the function returns all keys beginning with this subkey.+The function ''dbKeys()'' lists all keys stored in the **Database for Contents**. If a //subKey// is specified, the function returns all keys beginning with this subkey (prefix) and are stored with the current interview language or with the base language of the survey project.
  
 More details and examples can be found in chapters [[:en:create:databank|Data Fragments in PHP code]] and ''[[:en:create:functions:dbset|dbSet()]]'' More details and examples can be found in chapters [[:en:create:databank|Data Fragments in PHP code]] and ''[[:en:create:functions:dbset|dbSet()]]''
Line 7: Line 7:
 ''array **dbKeys**([string //subKey//])'' ''array **dbKeys**([string //subKey//])''
  
-  * //subKey// (optional)\\ If a subkey is specified then only keys beginning with this subkey are listed. For example, if the subkey is '''A''', you will get "A001", "A002", "AA00", "Alpha", etc., but  not "B001" or "100".+  * //subKey// (optional)\\  
 +    * If a subkey is specified then only keys beginning with this subkey are listed. For example, if the subkey is '''A''', you will get "A001", "A002", "AA00", "Alpha", etc., but  not "B001" or "100"
 +    * If no subkey is specified, ''dbKeys()'' returns all keys from the database for content.
      
en/create/functions/dbkeys.1422105133.txt.gz · Last modified: by alexander.ritter
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki