public function append($data) {

		if(false === is_string($data)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($data)), E_USER_ERROR);
		}

		if(false !== $this -> file -> getExists()) {

	    	if(false === is_writable($this -> file -> getBasepath())) {
	    		trigger_error(sprintf('File "%s" is not writable', $this -> file -> getBasepath()), E_USER_ERROR);
	    	}

		    $handle = fopen($this -> file -> getBasepath(), 'a');

	    	fwrite($handle, $data);
	    	fclose($handle);
		}

		return $this;
	}
public function append($data) {

		if(false === is_string($data)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($data)), E_USER_ERROR);
		}

		if(false !== $this -> file -> getExists()) {

	    	if(false === is_writable($this -> file -> getBasepath())) {
	    		trigger_error(sprintf('File "%s" is not writable', $this -> file -> getBasepath()), E_USER_ERROR);
	    	}

		    $handle = fopen($this -> file -> getBasepath(), 'a');

	    	fwrite($handle, $data);
	    	fclose($handle);
		}

		return $this;
	}
public function append ( $ data ) { if ( false === is_string ( $ data ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type string, "%s" given' , __METHOD__ , gettype ( $ data ) ) , E_USER_ERROR ) ; } if ( false !== $ this -> file -> getExists ( ) ) { if ( false === is_writable ( $ this -> file -> getBasepath ( ) ) ) { trigger_error ( sprintf ( 'File "%s" is not writable' , $ this -> file -> getBasepath ( ) ) , E_USER_ERROR ) ; } $ handle = fopen ( $ this -> file -> getBasepath ( ) , 'a' ) ; fwrite ( $ handle , $ data ) ; fclose ( $ handle ) ; } return $ this ; }
Appends data to current file
@param string $data
@return sFire\System\File
Appends data to current file