- <?php
- interface Application_Model_UnternehmensrolleConstantsInterface{
- const KUNDE=1;
- const AGENTUR=2;
- const LIEFERANT=3;
- const MEDIENPRODUKTION=4;
- const GESCHAEFTSFUEHRUNG_BUCHFUEHRUNG=5;
- const MARKETING=6;
- }
- ?>
- <?php
- class foobar
- {
- public function foobar($string){
- //this string is 'AGENTUR'
- mysql_select_row('id'=$string); // how do i map the AGENTUR to 2?
- }
- }