|
Doctrine 1.2.4
|
Public Member Functions | |
| __construct ($pager, $pagerRange, $urlMask) | |
| __toString () | |
| addMaskReplacement ($oldMask, $newMask, $asValue=false) | |
| cleanMaskReplacements () | |
| display ($options=array(), $return=false) | |
| execute ($params=array(), $hydrationMode=null) | |
| getPager () | |
| getPagerRange () | |
| getSelectedTemplate () | |
| getSeparatorTemplate () | |
| getTemplate () | |
| getUrlMask () | |
| processPage ($options=array()) | |
| removeMaskReplacement ($oldMask) | |
| setSelectedTemplate ($selectedTemplate) | |
| setSeparatorTemplate ($separatorTemplate) | |
| setTemplate ($template) | |
Protected Member Functions | |
| _parseMaskReplacements ($str) | |
| _parseReplacementsTemplate ($options=array()) | |
| _parseTemplate ($options=array()) | |
| _parseUrl ($options=array()) | |
| _parseUrlTemplate ($options=array()) | |
| _setPager ($pager) | |
| _setPagerRange ($pagerRange) | |
| _setUrlMask ($urlMask) | |
Definition at line 33 of file Layout.php.
| Doctrine_Pager_Layout::__construct | ( | $pager, | |
| $pagerRange, | |||
| $urlMask | |||
| ) |
__construct
| Doctrine_Pager | $pager | Doctrine_Pager object related to the pager layout |
| Doctrine_Pager_Range | $pagerRange | Doctrine_Pager_Range object related to the pager layout |
| string | $urlMask | URL to be assigned for each page |
Definition at line 81 of file Layout.php.
| Doctrine_Pager_Layout::__toString | ( | ) |
Simply calls display, and returns the output.
Definition at line 382 of file Layout.php.
|
protected |
_parseMaskReplacements
Parse the mask replacements, changing from to-be replaced mask with new masks/values
| $str | String to have masks replaced |
Definition at line 480 of file Layout.php.
|
protected |
_parseUrl
Parse the mask replacements of a given page
| $options | Optional parameters to be applied in template and url mask |
Definition at line 437 of file Layout.php.
|
protected |
_parseTemplate
Parse the template of a given page and return the processed template
| array | Optional parameters to be applied in template and url mask |
Definition at line 395 of file Layout.php.
|
protected |
_parseUrl
Parse the url mask of a given page and return the processed url
| $options | Optional parameters to be applied in template and url mask |
Definition at line 459 of file Layout.php.
|
protected |
_parseUrlTemplate
Parse the url mask to return the correct template depending of the options sent. Already process the mask replacements assigned.
| $options | Optional parameters to be applied in template and url mask |
Definition at line 412 of file Layout.php.
|
protected |
_setPager
Defines the Doctrine_Pager object related to the pager layout
| $pager | Doctrine_Pager object related to the pager range |
Definition at line 112 of file Layout.php.
|
protected |
_setPagerRange
Defines the Doctrine_Pager_Range subclass object related to the pager layout
| $pagerRange | Doctrine_Pager_Range subclass object related to the pager range |
Definition at line 151 of file Layout.php.
|
protected |
_setUrlMask
Defines the URL to be assigned for each page
| $urlMask | URL to be assigned for each page |
Definition at line 177 of file Layout.php.
| Doctrine_Pager_Layout::addMaskReplacement | ( | $oldMask, | |
| $newMask, | |||
$asValue = false |
|||
| ) |
addMaskReplacement
Defines a mask replacement. When parsing template, it converts replacement masks into new ones (or values), allowing to change masks behavior on the fly
| $oldMask | Mask to be replaced |
| $newMask | Mask or Value that will be defined after replacement |
| $asValue | Optional value (default false) that if defined as true, changes the bahavior of replacement mask to replacement value |
Definition at line 272 of file Layout.php.
| Doctrine_Pager_Layout::cleanMaskReplacements | ( | ) |
cleanMaskReplacements
Remove all mask replacements
Definition at line 306 of file Layout.php.
| Doctrine_Pager_Layout::display | ( | $options = array(), |
|
$return = false |
|||
| ) |
display
Displays the pager on screen based on templates and options defined
| $options | Optional parameters to be applied in template and url mask |
| $return | Optional parameter if you want to capture the output of this method call (Default value is false), instead of printing it |
Definition at line 324 of file Layout.php.
| Doctrine_Pager_Layout::execute | ( | $params = array(), |
|
$hydrationMode = null |
|||
| ) |
execute
Handy method to execute the query without need to retrieve the Pager instance
| $params | Optional parameters to Doctrine_Query::execute |
| $hydrationMode | Hydration Mode of Doctrine_Query::execute returned ResultSet. |
Definition at line 126 of file Layout.php.
| Doctrine_Pager_Layout::getPager | ( | ) |
getPager
Returns the Doctrine_Pager object related to the pager layout
Definition at line 99 of file Layout.php.
| Doctrine_Pager_Layout::getPagerRange | ( | ) |
getPagerRange
Returns the Doctrine_Pager_Range subclass object related to the pager layout
Definition at line 138 of file Layout.php.
| Doctrine_Pager_Layout::getSelectedTemplate | ( | ) |
getSelectedTemplate
Returns the Template to be applied for active page
Definition at line 216 of file Layout.php.
| Doctrine_Pager_Layout::getSeparatorTemplate | ( | ) |
getSeparatorTemplate
Returns the Separator template, applied between each page
Definition at line 241 of file Layout.php.
| Doctrine_Pager_Layout::getTemplate | ( | ) |
getTemplate
Returns the Template to be applied for inactive pages
Definition at line 190 of file Layout.php.
| Doctrine_Pager_Layout::getUrlMask | ( | ) |
getUrlMask
Returns the URL to be assigned for each page
Definition at line 164 of file Layout.php.
| Doctrine_Pager_Layout::processPage | ( | $options = array() | ) |
processPage
Parses the template and returns the string of a processed page
| array | Optional parameters to be applied in template and url mask |
Definition at line 358 of file Layout.php.
| Doctrine_Pager_Layout::removeMaskReplacement | ( | $oldMask | ) |
removeMaskReplacement
Remove a mask replacement
| $oldMask | Replacement Mask to be removed |
Definition at line 290 of file Layout.php.
| Doctrine_Pager_Layout::setSelectedTemplate | ( | $selectedTemplate | ) |
setSelectedTemplate
Defines the Template to be applied for active page
| $selectedTemplate | Template to be applied for active page |
Definition at line 229 of file Layout.php.
| Doctrine_Pager_Layout::setSeparatorTemplate | ( | $separatorTemplate | ) |
setSeparatorTemplate
Defines the Separator template, applied between each page
| $separatorTemplate | Separator template, applied between each page |
Definition at line 254 of file Layout.php.
| Doctrine_Pager_Layout::setTemplate | ( | $template | ) |
setTemplate
Defines the Template to be applied for inactive pages (also active page if selected template not defined)
| $template | Template to be applied for inactive pages |
Definition at line 204 of file Layout.php.