src/CLI/Server/Cron/Parser.php
protected function parseJob( $string )
	{
		$pattern	= "@^( |\t)*(\*|[0-9,-]+)( |\t)+(\*|[0-9,-]+)( |\t)+(\*|[0-9,-]+)( |\t)+(\*|[0-9,-]+)( |\t)+(\*|[0-9,-]+)( |\t)+(.*)(\r)?\n$@si";
		if( preg_match( $pattern, $string ) )
		{
			$match	= preg_replace( $pattern, "\\2|||\\4|||\\6|||\\8|||\\10|||\\12", $string );
			$match	= explode( "|||", $match );
			$job	= new CLI_Server_Cron_Job( $match[5] );
			$job->setOption( "minute",	$this->getValues( $match[0], 2 ) );
			$job->setOption( "hour",	$this->getValues( $match[1], 2 ) );
			$job->setOption( "day",		$this->getValues( $match[2], 2 ) );
			$job->setOption( "month",	$this->getValues( $match[3], 2 ) );
			$job->setOption( "weekday",	$this->getValues( $match[4] ) );
			$this->jobs[]	= $job;
		}
	}
protected function parseJob( $string )
	{
		$pattern	= "@^( |\t)*(\*|[0-9,-]+)( |\t)+(\*|[0-9,-]+)( |\t)+(\*|[0-9,-]+)( |\t)+(\*|[0-9,-]+)( |\t)+(\*|[0-9,-]+)( |\t)+(.*)(\r)?\n$@si";
		if( preg_match( $pattern, $string ) )
		{
			$match	= preg_replace( $pattern, "\\2|||\\4|||\\6|||\\8|||\\10|||\\12", $string );
			$match	= explode( "|||", $match );
			$job	= new CLI_Server_Cron_Job( $match[5] );
			$job->setOption( "minute",	$this->getValues( $match[0], 2 ) );
			$job->setOption( "hour",	$this->getValues( $match[1], 2 ) );
			$job->setOption( "day",		$this->getValues( $match[2], 2 ) );
			$job->setOption( "month",	$this->getValues( $match[3], 2 ) );
			$job->setOption( "weekday",	$this->getValues( $match[4] ) );
			$this->jobs[]	= $job;
		}
	}
protected function parseJob ( $ string ) { $ pattern = "@^( |\t)*(\*|[0-9,-]+)( |\t)+(\*|[0-9,-]+)( |\t)+(\*|[0-9,-]+)( |\t)+(\*|[0-9,-]+)( |\t)+(\*|[0-9,-]+)( |\t)+(.*)(\r)?\n$@si" ; if ( preg_match ( $ pattern , $ string ) ) { $ match = preg_replace ( $ pattern , "\\2|||\\4|||\\6|||\\8|||\\10|||\\12" , $ string ) ; $ match = explode ( "|||" , $ match ) ; $ job = new CLI_Server_Cron_Job ( $ match [ 5 ] ) ; $ job -> setOption ( "minute" , $ this -> getValues ( $ match [ 0 ] , 2 ) ) ; $ job -> setOption ( "hour" , $ this -> getValues ( $ match [ 1 ] , 2 ) ) ; $ job -> setOption ( "day" , $ this -> getValues ( $ match [ 2 ] , 2 ) ) ; $ job -> setOption ( "month" , $ this -> getValues ( $ match [ 3 ] , 2 ) ) ; $ job -> setOption ( "weekday" , $ this -> getValues ( $ match [ 4 ] ) ) ; $ this -> jobs [ ] = $ job ; } }
Parses one entry of Cron Tab File.
@access		protected
@param		string	$string		One entry of Cron Tab File
@return		void
Parses one entry of Cron Tab File .