Structures_DataGrid::setRequestPrefix (Previous) (Next) Structures_DataGrid::sortRecordSet

View this page in Last updated: Sun, 28 Sep 2008
English | French | German | Japanese | Plain HTML

Structures_DataGrid::setUrlFormat()

Structures_DataGrid::setUrlFormat()  -- Enable and configure URL mapping

Beschreibung

If this is set, it will be parsed instead of GET/POST. This is only supported on PHP5, as it depends on Net_URL_Mapper.

There are three possible placeholders, :pager, :orderBy and :direction. :page or (:orderBy and :direction) can be used alone.

It is possible to use multipe DataGrid instances on one page with different prefixes.

Instead of a format string you might also pass a Net_URL_Mapper instance to this method, in which case $prefix and $scriptname will be ignored. This instance must be properly set up, connected to url patterns, etc... This is especially useful when you've already configured URL mapping globally for your application and want Structures_DataGrid to integrate.

Parameter

mixed $format

The URL format string or a Net_URL_Mapper instance

string $prefix

Sets the url prefix

string $scriptname

Set the scriptname if mod_rewrite not available

Fehler-Meldungen

throws Net_URL_Mapper_InvalidException

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Structures_DataGrid::setRequestPrefix (Previous) (Next) Structures_DataGrid::sortRecordSet

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.