Ticket #1450 (confirmed enhancement)
Savoir si un selecteur pointe vers un fichier existant.
| Reported by: | flav | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Jelix 2.0.0 |
| Component: | jelix:core | Version: | 1.3.1 |
| Severity: | normal | Keywords: | |
| Cc: | Php version: | ||
| Hosting Provider: | Blocked By: | ||
| Documentation needed: | no | Blocking: |
Description (last modified by laurentj) (diff)
Si l'on fait :
$selector = jSelectorFactory::create($unSelecteur);
if(!file_exists($selector->getPath()) {
...
}
On obtient une exception. Ce qui n'est pas très pratique. Une fonction statique jSelectorFactory::exists($nom_du_selecteur) ? Ou quelque chose comme ça pourrait être avantageux.
Change History
Note: See
TracTickets for help on using
tickets.
