src/Net/Connectivity.php
public function check( $method = NULL ){
		$method			= $this->method;
		if( $method && $this->validateMethod( $method ) )
			$method		= $method;
		$currentStatus	= $this->status;
		switch( $method ){
			case self::METHOD_SOCKET:
				$this->checkUsingSocket();
				break;
			case self::METHOD_PING:
				$this->checkUsingSystemPing();
				break;
		}
		if( $this->status !== $currentStatus ){
			if( $this->callbackOnChange ){
				call_user_func_array( $this->callbackOnChange, array( $this->status ) );
			}
		}
	}
public function check( $method = NULL ){
		$method			= $this->method;
		if( $method && $this->validateMethod( $method ) )
			$method		= $method;
		$currentStatus	= $this->status;
		switch( $method ){
			case self::METHOD_SOCKET:
				$this->checkUsingSocket();
				break;
			case self::METHOD_PING:
				$this->checkUsingSystemPing();
				break;
		}
		if( $this->status !== $currentStatus ){
			if( $this->callbackOnChange ){
				call_user_func_array( $this->callbackOnChange, array( $this->status ) );
			}
		}
	}
public function check ( $ method = NULL ) { $ method = $ this -> method ; if ( $ method && $ this -> validateMethod ( $ method ) ) $ method = $ method ; $ currentStatus = $ this -> status ; switch ( $ method ) { case self :: METHOD_SOCKET : $ this -> checkUsingSocket ( ) ; break ; case self :: METHOD_PING : $ this -> checkUsingSystemPing ( ) ; break ; } if ( $ this -> status !== $ currentStatus ) { if ( $ this -> callbackOnChange ) { call_user_func_array ( $ this -> callbackOnChange , array ( $ this -> status ) ) ; } } }
...
Executes callback function by if set and status has changed.
@access		public
@param		integer		$method		Method to use for checking
@return		void
@throws		\RangeException			if given method is unsupported
... Executes callback function by if set and status has changed .