public function run($time = null) {

		if(empty($this->jobs)) return;

		if($time === null) $time = time();
		$date = getdate($time);

		$count = 0;

		foreach($this->jobs as $job) {
			$result = $job->run($date);
			if($result) $count++;
		}

		return $count;

	}
public function run($time = null) {

		if(empty($this->jobs)) return;

		if($time === null) $time = time();
		$date = getdate($time);

		$count = 0;

		foreach($this->jobs as $job) {
			$result = $job->run($date);
			if($result) $count++;
		}

		return $count;

	}
public function run ( $ time = null ) { if ( empty ( $ this -> jobs ) ) return ; if ( $ time === null ) $ time = time ( ) ; $ date = getdate ( $ time ) ; $ count = 0 ; foreach ( $ this -> jobs as $ job ) { $ result = $ job -> run ( $ date ) ; if ( $ result ) $ count ++ ; } return $ count ; }
Find any execute any jobs set to run

@param array/int Getdate data or timestamp
@return int Jobs ran
@author Luke Lanchester
Find any execute any jobs set to run