Search for in the Packages This site (using Yahoo!) Developers Developer mailing list General mailing list SVN commits mailing list
void HTML_Menu_DirectRenderer::setEntryTemplate ( mixed $type , string $template = = null )
Le template doit contenir au moins un marqueur {title}, qui peut également contenir un marqueur {url} et {indent} en fonction du type d'entrée. Les templates par défaut sont :
<?phparray( HTML_MENU_ENTRY_INACTIVE => '<td>{indent}<a href="{url}">{title}</a></td>', HTML_MENU_ENTRY_ACTIVE => '<td>{indent}<b>{title}</b></td>', HTML_MENU_ENTRY_ACTIVEPATH => '<td>{indent}<b><a href="{url}">{title}</a></b></td>', HTML_MENU_ENTRY_PREVIOUS => '<td><a href="{url}"><< {title}</a></td>', HTML_MENU_ENTRY_NEXT => '<td><a href="{url}">{title} >></a></td>', HTML_MENU_ENTRY_UPPER => '<td><a href="{url}">^ {title} ^</a></td>', HTML_MENU_ENTRY_BREADCRUMB => '<td><a href="{url}">{title}</a> >> </td>');?>
soit un type (une constante parmis les constantes HTML_MENU_ENTRY_*) ou un tableaudu type : 'type' => 'template'
template pour ce type d'entrée si $type n'est pas un tableau
No exceptions thrown.
This function can not be called statically.