[Solar-svn] Revision 2829
pmjones at solarphp.com
pmjones at solarphp.com
Sat Oct 6 10:58:16 CDT 2007
Solar_Uri
---------
* [BRK] Renamed method fetch() to get(), to be more consistent with naming conventions (because we are "getting" properties, not "fetching" from storage)
Modified: trunk/Solar/Uri.php
===================================================================
--- trunk/Solar/Uri.php 2007-10-06 15:57:28 UTC (rev 2828)
+++ trunk/Solar/Uri.php 2007-10-06 15:58:15 UTC (rev 2829)
@@ -80,7 +80,7 @@
* $uri->path[] = 'another';
*
* // and fetch it to a string.
- * $new_uri = $uri->fetch();
+ * $new_uri = $uri->get();
*
* // the $new_uri string is as follows; notice how the format
* // is always applied to the last path-element.
@@ -88,7 +88,7 @@
*
* // wait, there's no scheme or host!
* // we need to fetch the "full" URI.
- * $full_uri = $uri->fetch(true);
+ * $full_uri = $uri->get(true);
*
* // the $full_uri string is:
* // https://example.com/something/else/entirely/another.php?baz=zab&zim=gir#anchor
@@ -421,7 +421,7 @@
* @return string An action URI string.
*
*/
- public function fetch($full = false)
+ public function get($full = false)
{
// the uri string
$uri = '';
@@ -472,7 +472,7 @@
{
$uri = clone($this);
$uri->set($spec);
- return $uri->fetch($full);
+ return $uri->get($full);
}
More information about the Solar-svn
mailing list