src/FS/File/INI/Editor.php
public function addProperty( $key, $value, $comment = '', $state = TRUE, $section = NULL )
	{
		if( $section && !in_array( $section, $this->sections ) )
			$this->addSection( $section );
		$key = ( $state ? "" : $this->signDisabled ).$key;
		$this->added[] = array(
			"key"		=> $key,
			"value"		=> $value,
			"comment"	=> $comment,
			"section"	=> $section,
		);
		return is_int( $this->write() );
	}
public function addProperty( $key, $value, $comment = '', $state = TRUE, $section = NULL )
	{
		if( $section && !in_array( $section, $this->sections ) )
			$this->addSection( $section );
		$key = ( $state ? "" : $this->signDisabled ).$key;
		$this->added[] = array(
			"key"		=> $key,
			"value"		=> $value,
			"comment"	=> $comment,
			"section"	=> $section,
		);
		return is_int( $this->write() );
	}
public function addProperty ( $ key , $ value , $ comment = '' , $ state = TRUE , $ section = NULL ) { if ( $ section && ! in_array ( $ section , $ this -> sections ) ) $ this -> addSection ( $ section ) ; $ key = ( $ state ? "" : $ this -> signDisabled ) . $ key ; $ this -> added [ ] = array ( "key" => $ key , "value" => $ value , "comment" => $ comment , "section" => $ section , ) ; return is_int ( $ this -> write ( ) ) ; }
Adds a new Property with Comment.
@access		public
@param		string		$key			Key of new Property
@param		string		$value			Value of new Property
@param		string		$comment		Comment of new Property
@param		bool		$state			Activity state of new Property
@param		string		$section		Section to add Property to
@return		bool
Adds a new Property with Comment .