Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Štvrtok, 28. marec 2024
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Dokumentácia  »  HTML  »  PHP expressions

4.9. PHP expressions

PHP feature allows user to display any HTML code in place of a value. Behavior is the same as in triggers.

If PHP option is set, a file of that name is included (and executed). All variables avaliable in the core class are available in the included PHP file.

Example 4-38. PHP execution file

<?php
	if ($this->operation == $this->labels['Add']) {
		return 'add mode selected';
	} else {
		return '<img src="tt.png" alt="TT">';
	}
?>
This option is indended for advanced usage. Together with pre and before triggers, it allows tweaking the core class without the need to hack it. To change input, use before triggers or ['sqlw'] option.


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