Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addonabhängigkeiten in rex_request::castVar() #70

Closed
gharlan opened this issue Apr 30, 2012 · 1 comment
Closed

Addonabhängigkeiten in rex_request::castVar() #70

gharlan opened this issue Apr 30, 2012 · 1 comment
Assignees
Labels
Milestone

Comments

@gharlan
Copy link
Member

gharlan commented Apr 30, 2012

rex_request::castVar() wird verwendet für das Casting der Globals (rex_get(), rex_post() etc.). Da gibt es diese speziellen rex-Typen wie rex-article-id, rex-category-id, rex-template-id etc. Diese gehören eigentlich in die entsprechenden Addons.
article, category und clang sind die einzigen, die überhaupt speziell casten, alle anderen (module, template, media etc.) casten bisher nur nach int.

Mein Vorschlag ist, diese rex-Typen komplett abzuschaffen, und nur noch die Standard-PHP-Typen zu unterschützen. Die weitere Validierung muss man dann selbst machen, die meisten Typen casten aber ja sowieso nur nach int.

@dergel
Copy link
Member

dergel commented May 1, 2012

finde ich ok. vor allem weil diese article casts nicht unterscheiden ob online, oder verfügbar oder Recht mit drin ist.. angewendet, wurde es meines erachtens auch so gut wie gar nicht

@ghost ghost assigned gharlan May 2, 2012
@gharlan gharlan closed this as completed in 1b2be54 May 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants