Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 13. október 2024
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Dokumentácia  »  HTML  »  Booleans

4.3. Booleans

All variables in following section should have only true or false value.

Sorting

Allow users to sort the display on this column. Use true for enable, false for disable.

Example 4-9. Field sorting

$opts['fdd']['col_name']['sort'] = true;
$opts['fdd']['col_name']['sort'] = false;

Stripping tags

If you are storing HTML and/or PHP content in you database columns, you may want to have $opts['fdd']['col_name']['strip_tags'] variable turned on for particular fields. It will strip HTML and PHP tags from field content, when displaying column in table listing.

Example 4-10. Stripping tags

$opts['fdd']['col_name']['strip_tags'] = true; 
$opts['fdd']['col_name']['strip_tags'] = false; 

HTML escaping

By default are all field values escaped using htmlspecialchars() PHP function. However, this is not always desirable. You can turn escaping off by setting $opts['fdd']['col_name']['escape'] to false.

Example 4-11. Field escaping

$opts['fdd']['col_name']['escape'] = true;
$opts['fdd']['col_name']['escape'] = false;


Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov