Skip to content
This repository
Browse code

Allow $url->set() to be used with 2 arguments

  • Loading branch information...
commit 42e6168584fea4d4b76e4e2988556fd87729c118 1 parent ee1552c
Romans Malinovskis authored June 01, 2011

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  lib/URL.php
4  lib/URL.php
@@ -123,6 +123,10 @@ function setPage($page=null){
123 123
 		$this->page=$destination;
124 124
 		return $this;
125 125
 	}
  126
+    function set($argument,$value=null){
  127
+        if(!is_array($argument))$argument=array($argument=>$value);
  128
+        return $this->setArguments($argument);
  129
+    }
126 130
 	function setArguments($arguments=array()){
127 131
 		// add additional arguments
128 132
 		if(is_null($arguments))$arguments=array();

0 notes on commit 42e6168

Please sign in to comment.
Something went wrong with that request. Please try again.