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

		if(false !== $this -> file -> getExists()) {
			return chmod($this -> file -> getBasepath(), $type);
		}

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

		if(false !== $this -> file -> getExists()) {
			return chmod($this -> file -> getBasepath(), $type);
		}

		return false;
	}
public function chmod ( $ type ) { if ( null !== $ type && false === ( '-' . intval ( $ type ) == '-' . $ type ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type integer, "%s" given' , __METHOD__ , gettype ( $ type ) ) , E_USER_ERROR ) ; } if ( false !== $ this -> file -> getExists ( ) ) { return chmod ( $ this -> file -> getBasepath ( ) , $ type ) ; } return false ; }
Changes current file mode
@param int $type
@return boolean
Changes current file mode