EvWatcher::getLoop

(PECL ev >= 0.2.0) Returns the loop responsible for the watcher public EvLoop EvWatcher::getLoop ( void ) Returns the loop responsible for the watcher Returns: Returns EvLoop event loop object responsible for the watcher.

EvWatcher::feed

(PECL ev >= 0.2.0) Feeds the given revents set into the event loop public void EvWatcher::feed ( int $revents ) Feeds the given revents set into the event loop, as if the specified event had happened for the watcher. Parameters: revents Bit mask of watcher received events . Returns: No value is returned.

EvWatcher::__construct

(PECL ev >= 0.2.0) Abstract constructor of a watcher object abstract public EvWatcher::__construct ( void ) EvWatcher::__construct() is an abstract constructor of a watcher object implemented in the derived classes.

EvWatcher::clear

(PECL ev >= 0.2.0) Clear watcher pending status public int EvWatcher::clear ( void ) If the watcher is pending, this method clears its pending status and returns its revents bitset(as if its callback was invoked). If the watcher isn't pending it does nothing and returns 0 . Sometimes it can be useful to "poll" a watcher instead of waiting for its callback to be invoked, which can be accomplished with this function.

EvTimer::set

(PECL ev >= 0.2.0) Configures the watcher public void EvTimer::set ( double $after , double $repeat ) Configures the watcher Parameters: after Configures the timer to trigger after after seconds. repeat If repeat is 0.0 , then it will automatically be stopped once the timeout is reached. If it is positive, then the timer will autom

EvTimer::createStopped

(PECL ev >= 0.2.0) Creates EvTimer stopped watcher object final public static EvTimer EvTimer::createStopped ( double $after , double $repeat , callable $callback [, mixed $data = NULL [, int $priority = 0 ]] ) Creates EvTimer stopped watcher object. Unlike EvTimer::__construct() , this method doesn't start the watcher automatically. Parameters: after Configures the

EvTimer::__construct

(PECL ev >= 0.2.0) Constructs an EvTimer watcher object public EvTimer::__construct ( double $after , double $repeat , callable $callback [, mixed $data = NULL [, int $priority = 0 ]] ) Constructs an EvTimer watcher object. Parameters: after Configures the timer to trigger after after seconds. repeat If repeat is 0.0 , then it wil

EvTimer::again

(PECL ev >= 0.2.0) Restarts the timer watcher public void EvTimer::again ( void ) This will act as if the timer timed out and restart it again if it is repeating. The exact semantics are: if the timer is pending, its pending status is cleared. if the timer is started but non-repeating, stop it (as if it timed out). if the timer is repeating, either start it if necessary (with the repeat value), or reset the ru

EvStat::stat

(PECL ev >= 0.2.0) Initiates the stat call public bool EvStat::stat ( void ) Initiates the stat call(updates internal cache). It stats(using lstat ) the path specified in the watcher and sets to the values found. Returns: Returns TRUE if path exists. Otherwise FALSE. See also: EvStat::attr() -

EvStat::set

(PECL ev >= 0.2.0) Configures the watcher public void EvStat::set ( string $path , double $interval ) Configures the watcher. Parameters: path The path to wait for status changes on. interval Hint on how quickly a change is expected to be detected and should normally be specified as 0.0 to let libev choose a suitable value.