|
@@ 773-780 (lines=8) @@
|
| 770 |
|
* @param string $str The modfication |
| 771 |
|
* @return string Returns the resulting URI on success, FALSE otherwise |
| 772 |
|
*/ |
| 773 |
|
public static function query(&$object, $action, $str) { |
| 774 |
|
if (isset($str[0]) && $str[0] == '?') { |
| 775 |
|
$str = substr($str, 1); |
| 776 |
|
} |
| 777 |
|
|
| 778 |
|
\uri\actions::callback($object, $action, __FUNCTION__, $str); |
| 779 |
|
return \uri\generate::string($object); |
| 780 |
|
} |
| 781 |
|
|
| 782 |
|
/** |
| 783 |
|
* Modfies the Fragment |
|
@@ 790-798 (lines=9) @@
|
| 787 |
|
* @param string $str The modfication |
| 788 |
|
* @return string Returns the resulting URI on success, FALSE otherwise |
| 789 |
|
*/ |
| 790 |
|
public static function fragment(&$object, $action, $str) { |
| 791 |
|
if (isset($str[0]) && $str[0] == '#') { |
| 792 |
|
$str = substr($str, 1); |
| 793 |
|
} |
| 794 |
|
$str = urlencode($str); |
| 795 |
|
|
| 796 |
|
\uri\actions::callback($object, $action, __FUNCTION__, $str); |
| 797 |
|
return \uri\generate::string($object); |
| 798 |
|
} |
| 799 |
|
} |
| 800 |
|
|
| 801 |
|
|