1. Gökhan ÖZTÜRK
  2. Gen Options

Commits

Gökhan ÖZTÜRK  committed 7cd2a33

Added method chaining

  • Participants
  • Parent commits ad61e4c
  • Branches default

Comments (0)

Files changed (1)

File application/libraries/gen_options.php

View file
 		
 		if ($type)
 			return $new_options;
+		
+		// Method chaining
+		return $this;
 	}
 	
 	// --------------------------------------------------------------------
 	{	
 		foreach ((array)$items as $key => $val)
 			get_instance()->gen_options_model->update($name, $value);
+		
+		// Method chaining
+		return $this;
 	}
 
 	// --------------------------------------------------------------------
 	public function makeAutoload($name)
 	{
 		get_instance()->gen_options_model->makeAutoload($name);
+		
+		// Method chaining
+		return $this;
 	}
 	
 	// --------------------------------------------------------------------
 		}
 		
 		get_instance()->gen_options_model->remove($name);
+		
+		// Method chaining
+		return $this;
 	}
 	
 	// --------------------------------------------------------------------