Ticket #345 (new enhancement)

Opened 9 months ago

Allow php inside of insert/select/updatepattern

Reported by: Uriel C Assigned to:
Priority: normal Milestone:
Component: jelix:dao Version: 1.0 beta 3.1
Severity: normal Keywords:
Cc: Php version:
Review: Hosting Provider:
Documentation needed: Blocking:

Description

It may be useful to be allowed to use PHP code in *pattern in jDao. To avoid confusion between MySQL and PHP code, we could create new XML properties to the <property /> tag : insertpatternphp, updatepatternphp and selectpatternphp that would be mutually exclusive with the corresponding *pattern. The code would just have to be eval()'d. What about security concerns ?

Ca serait pratique de pouvoir inserer du PHP dans les *pattern d'une DAO. Pour éviter la confusion entre ce qui est du code PHP et ce qui est du code MySQL, on pourrait avoir des nouvelles propriétés XML pour la balise <property /> : insertpatternphp, updatepatternphp et selectpatternphp qui seraient mutuellement exclusifs avec les *patterin correspondants. Il suffirait de passer le code PHP dans un eval(). Question : cela peut-il poser des problèmes de sécurité ?

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed