protected function put($args) {
		$target = $args['target'];
		
		if (($volume = $this->volume($target)) == false
		|| ($file = $volume->file($target)) == false) {
			return array('error' => $this->error(self::ERROR_SAVE, '#'.$target, self::ERROR_FILE_NOT_FOUND));
		}
		
		if (($file = $volume->putContents($target, $args['content'])) == false) {
			return array('error' => $this->error(self::ERROR_SAVE, $volume->path($target), $volume->error()));
		}
		
		return array('changed' => array($file));
	}
protected function put($args) {
		$target = $args['target'];
		
		if (($volume = $this->volume($target)) == false
		|| ($file = $volume->file($target)) == false) {
			return array('error' => $this->error(self::ERROR_SAVE, '#'.$target, self::ERROR_FILE_NOT_FOUND));
		}
		
		if (($file = $volume->putContents($target, $args['content'])) == false) {
			return array('error' => $this->error(self::ERROR_SAVE, $volume->path($target), $volume->error()));
		}
		
		return array('changed' => array($file));
	}
protected function put ( $ args ) { $ target = $ args [ 'target' ] ; if ( ( $ volume = $ this -> volume ( $ target ) ) == false || ( $ file = $ volume -> file ( $ target ) ) == false ) { return array ( 'error' => $ this -> error ( self :: ERROR_SAVE , '#' . $ target , self :: ERROR_FILE_NOT_FOUND ) ) ; } if ( ( $ file = $ volume -> putContents ( $ target , $ args [ 'content' ] ) ) == false ) { return array ( 'error' => $ this -> error ( self :: ERROR_SAVE , $ volume -> path ( $ target ) , $ volume -> error ( ) ) ) ; } return array ( 'changed' => array ( $ file ) ) ; }
Save content into text file

@return array
@author Dmitry (dio) Levashov
Save content into text file