public function touch($time = null, $accesstime = null) {

		if(null !== $time && false === ('-' . intval($time) == '-' . $time)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($time)), E_USER_ERROR);
		}

		if(null !== $accesstime && false === ('-' . intval($accesstime) == '-' . $accesstime)) {
			return trigger_error(sprintf('Argument 2 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($accesstime)), E_USER_ERROR);
		}

		if(false !== $this -> file -> getExists()) {
			touch($this -> file -> getBasepath(), $time, $accesstime);
		}

		return $this;
	}
public function touch($time = null, $accesstime = null) {

		if(null !== $time && false === ('-' . intval($time) == '-' . $time)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($time)), E_USER_ERROR);
		}

		if(null !== $accesstime && false === ('-' . intval($accesstime) == '-' . $accesstime)) {
			return trigger_error(sprintf('Argument 2 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($accesstime)), E_USER_ERROR);
		}

		if(false !== $this -> file -> getExists()) {
			touch($this -> file -> getBasepath(), $time, $accesstime);
		}

		return $this;
	}
public function touch ( $ time = null , $ accesstime = null ) { if ( null !== $ time && false === ( '-' . intval ( $ time ) == '-' . $ time ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type integer, "%s" given' , __METHOD__ , gettype ( $ time ) ) , E_USER_ERROR ) ; } if ( null !== $ accesstime && false === ( '-' . intval ( $ accesstime ) == '-' . $ accesstime ) ) { return trigger_error ( sprintf ( 'Argument 2 passed to %s() must be of the type integer, "%s" given' , __METHOD__ , gettype ( $ accesstime ) ) , E_USER_ERROR ) ; } if ( false !== $ this -> file -> getExists ( ) ) { touch ( $ this -> file -> getBasepath ( ) , $ time , $ accesstime ) ; } return $ this ; }
Sets access and modification time of file. If the file does not exist, it will be created
@param int $time
@param accesstime $time
@return sFire\System\File
Sets access and modification time of file . If the file does not exist it will be created