User Tools

Site Tools


coding:vb:snippets

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
coding:vb:snippets [2019/07/09 00:04]
stigzler
coding:vb:snippets [2019/07/09 00:04] (current)
stigzler
Line 7: Line 7:
 If you get an exception when checking a datatable item for DBNull, then change your syntax. E.g: If you get an exception when checking a datatable item for DBNull, then change your syntax. E.g:
  
-''​function css_filewrapper($mediatype,​ $files=array()){ return array( '​files' ​⇒ $files, '​mediatype' ​⇒ $mediatype, '​encapsulate' ​⇒ $mediatype != '​all',​ '​encapsulationPrefix' ​⇒ '​@media '​.$mediatype ); } /** * Prints the @media encapsulated default styles of DokuWiki * ''​+''​function css_filewrapper($mediatype,​ $files=array()){\\ 
 +  ​return array(\\ 
 +          ​'​files' ​                => $files,\\ 
 +          ​'​mediatype' ​            => $mediatype,\\ 
 +          ​'​encapsulate' ​          => $mediatype != '​all',​\\ 
 +          ​'​encapsulationPrefix' ​  => '​@media '​.$mediatype\\ 
 +      ​);\\ 
 +}''​ 
 + 
 +''​/**\\ 
 +* Prints the @media encapsulated default styles of DokuWiki\\ 
 +*''​
  
  
coding/vb/snippets.txt · Last modified: 2019/07/09 00:04 by stigzler