Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Adding a doc block.
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Feb 12, 2015
1 parent 137b2c9 commit eabe5d3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Utility/TemplateUrl.php
Expand Up @@ -67,7 +67,7 @@ public function addTemplate($identifier, array $preset = array()) {
/**
* Builds an URL array based on a preset.
*
* @param array $data
* @param array $data Data for the URL params.
* @param string $identifier
* @param array $options
* @throws RuntimeException
Expand Down Expand Up @@ -108,6 +108,13 @@ public static function url($data, $identifier, $options = array()) {
return $url;
}

/**
* Builds the actual URL array.
*
* @param array $data Data for the URL params.
* @param array $preset Preset array.
* @return array
*/
protected static function _buildUrlArray($data, $preset) {
if (is_callable($preset['fieldMap'])) {
return $preset['fieldMap']($data, $preset);
Expand All @@ -131,7 +138,7 @@ protected static function _buildUrlArray($data, $preset) {
/**
* Convenience method to get a string $url with full base path.
*
* @param array $data
* @param array $data Data for the URL params.
* @param string $identifier
* @param boolean
* @return string
Expand Down

0 comments on commit eabe5d3

Please sign in to comment.