public function getItem( $id, array $ref = array() )
	{
		$criteria = $this->createSearch();
		$criteria->setConditions( $criteria->compare( '==', 'job.id', $id ) );
		$items = $this->searchItems( $criteria, $ref );

		if( ( $item = reset( $items ) ) === false ) {
			throw new MAdmin_Job_Exception( sprintf( 'Job with ID "%1$s" not found', $id ) );
		}

		return $item;
	}
public function getItem( $id, array $ref = array() )
	{
		$criteria = $this->createSearch();
		$criteria->setConditions( $criteria->compare( '==', 'job.id', $id ) );
		$items = $this->searchItems( $criteria, $ref );

		if( ( $item = reset( $items ) ) === false ) {
			throw new MAdmin_Job_Exception( sprintf( 'Job with ID "%1$s" not found', $id ) );
		}

		return $item;
	}
public function getItem ( $ id , array $ ref = array ( ) ) { $ criteria = $ this -> createSearch ( ) ; $ criteria -> setConditions ( $ criteria -> compare ( '==' , 'job.id' , $ id ) ) ; $ items = $ this -> searchItems ( $ criteria , $ ref ) ; if ( ( $ item = reset ( $ items ) ) === false ) { throw new MAdmin_Job_Exception ( sprintf ( 'Job with ID "%1$s" not found' , $ id ) ) ; } return $ item ; }
Creates the job object for the given job ID.

@param integer $id Job ID to fetch job object for
@param array $ref List of domains to fetch list items and referenced items for
@return MAdmin_Job_Item_Interface Returns the job item of the given id
@throws MAdmin_Job_Exception If item couldn't be found
Creates the job object for the given job ID .