public function run($time) {

		if(empty($this->formats) or empty($this->callbacks)) return false;

		if(!is_array($time)) $time = getdate($time);

		$should_run = false;
		foreach($this->formats as $format) {
			if(!$format->test($time)) continue;
			$should_run = true;
			break;
		}
		if(!$should_run) return false;

		foreach($this->callbacks as $callback) {
			if(!is_callable($callback)) continue;
			call_user_func($callback);
		}

		return true;

	}
public function run($time) {

		if(empty($this->formats) or empty($this->callbacks)) return false;

		if(!is_array($time)) $time = getdate($time);

		$should_run = false;
		foreach($this->formats as $format) {
			if(!$format->test($time)) continue;
			$should_run = true;
			break;
		}
		if(!$should_run) return false;

		foreach($this->callbacks as $callback) {
			if(!is_callable($callback)) continue;
			call_user_func($callback);
		}

		return true;

	}
public function run ( $ time ) { if ( empty ( $ this -> formats ) or empty ( $ this -> callbacks ) ) return false ; if ( ! is_array ( $ time ) ) $ time = getdate ( $ time ) ; $ should_run = false ; foreach ( $ this -> formats as $ format ) { if ( ! $ format -> test ( $ time ) ) continue ; $ should_run = true ; break ; } if ( ! $ should_run ) return false ; foreach ( $ this -> callbacks as $ callback ) { if ( ! is_callable ( $ callback ) ) continue ; call_user_func ( $ callback ) ; } return true ; }
Determine if this Job is set to be run, if so, run it

@param array/int Getdate array or timestamp
@return void
@author Luke Lanchester
Determine if this Job is set to be run if so run it