src/XML/DOM/Storage.php
public function set( $path, $value, $write = false )
	{
		$type	= gettype( $value );
		if( !in_array( $type, array( "double", "integer", "boolean", "string" ) ) )
			throw new InvalidArgumentException( "Value must be of type double, integer, boolean or string. ".ucfirst( $type )." given", E_USER_WARNING );
		$result	=	$this->setRecursive( $path, $value, $this->storage );
		if( $write && $result )
			return (bool) $this->write();
		return $result;
	}
public function set( $path, $value, $write = false )
	{
		$type	= gettype( $value );
		if( !in_array( $type, array( "double", "integer", "boolean", "string" ) ) )
			throw new InvalidArgumentException( "Value must be of type double, integer, boolean or string. ".ucfirst( $type )." given", E_USER_WARNING );
		$result	=	$this->setRecursive( $path, $value, $this->storage );
		if( $write && $result )
			return (bool) $this->write();
		return $result;
	}
public function set ( $ path , $ value , $ write = false ) { $ type = gettype ( $ value ) ; if ( ! in_array ( $ type , array ( "double" , "integer" , "boolean" , "string" ) ) ) throw new InvalidArgumentException ( "Value must be of type double, integer, boolean or string. " . ucfirst ( $ type ) . " given" , E_USER_WARNING ) ; $ result = $ this -> setRecursive ( $ path , $ value , $ this -> storage ) ; if ( $ write && $ result ) return ( bool ) $ this -> write ( ) ; return $ result ; }
Sets a Value in the Storage by its Path.
@access		public
@param		string		$path			Path to value
@param		mixed		$value			Value to set at Path
@param		bool		$write			Flag: write on Update
@return 	bool
Sets a Value in the Storage by its Path .