src/FS/File/Writer.php
public function create( $mode = NULL, $user = NULL, $group = NULL )
	{
		if( self::$minFreeDiskSpace && self::$minFreeDiskSpace > disk_free_space( getcwd() ) )
			throw new RuntimeException( 'No space left' );

		if( !@touch( $this->fileName ) )
			throw new RuntimeException( 'File "'.$this->fileName.'" could not been created' );

		if( $mode )
			$this->setPermissions( $mode );
		if( $user )
			$this->setOwner( $user );
		if( $group )
			$this->setGroup( $group );
	}
public function create( $mode = NULL, $user = NULL, $group = NULL )
	{
		if( self::$minFreeDiskSpace && self::$minFreeDiskSpace > disk_free_space( getcwd() ) )
			throw new RuntimeException( 'No space left' );

		if( !@touch( $this->fileName ) )
			throw new RuntimeException( 'File "'.$this->fileName.'" could not been created' );

		if( $mode )
			$this->setPermissions( $mode );
		if( $user )
			$this->setOwner( $user );
		if( $group )
			$this->setGroup( $group );
	}
public function create ( $ mode = NULL , $ user = NULL , $ group = NULL ) { if ( self :: $ minFreeDiskSpace && self :: $ minFreeDiskSpace > disk_free_space ( getcwd ( ) ) ) throw new RuntimeException ( 'No space left' ) ; if ( ! @ touch ( $ this -> fileName ) ) throw new RuntimeException ( 'File "' . $ this -> fileName . '" could not been created' ) ; if ( $ mode ) $ this -> setPermissions ( $ mode ) ; if ( $ user ) $ this -> setOwner ( $ user ) ; if ( $ group ) $ this -> setGroup ( $ group ) ; }
Create a file and sets Rights, Owner and Group.
@access		public
@param		string		$mode			UNIX rights for chmod()
@param		string		$user			User Name for chown()
@param		string		$group			Group Name for chgrp()
@throws		RuntimeException if no space is left on file system
@throws		RuntimeException if file could not been created
@return		void
Create a file and sets Rights Owner and Group .