protected function _createItem( array $entry )
	{
		$item = $this->_manager->createItem();

		foreach( $entry as $name => $value )
		{
			switch( $name )
			{
				case 'job.id': $item->setId( $value ); break;
				case 'job.label': $item->setLabel( $value ); break;
				case 'job.method': $item->setMethod( $value ); break;
				case 'job.status': $item->setStatus( $value ); break;
				case 'job.parameter':
					if( is_string( $value ) ) {
						$item->setParameter( json_decode( $value, true ) );
					} else {
						$item->setParameter( (array) $value );
					}
					break;
				case 'job.result':
					if( is_string( $value ) ) {
						$item->setResult( json_decode( $value, true ) );
					} else {
						$item->setResult( (array) $value );
					}
					break;
			}
		}

		return $item;
	}
protected function _createItem( array $entry )
	{
		$item = $this->_manager->createItem();

		foreach( $entry as $name => $value )
		{
			switch( $name )
			{
				case 'job.id': $item->setId( $value ); break;
				case 'job.label': $item->setLabel( $value ); break;
				case 'job.method': $item->setMethod( $value ); break;
				case 'job.status': $item->setStatus( $value ); break;
				case 'job.parameter':
					if( is_string( $value ) ) {
						$item->setParameter( json_decode( $value, true ) );
					} else {
						$item->setParameter( (array) $value );
					}
					break;
				case 'job.result':
					if( is_string( $value ) ) {
						$item->setResult( json_decode( $value, true ) );
					} else {
						$item->setResult( (array) $value );
					}
					break;
			}
		}

		return $item;
	}
protected function _createItem ( array $ entry ) { $ item = $ this -> _manager -> createItem ( ) ; foreach ( $ entry as $ name => $ value ) { switch ( $ name ) { case 'job.id' : $ item -> setId ( $ value ) ; break ; case 'job.label' : $ item -> setLabel ( $ value ) ; break ; case 'job.method' : $ item -> setMethod ( $ value ) ; break ; case 'job.status' : $ item -> setStatus ( $ value ) ; break ; case 'job.parameter' : if ( is_string ( $ value ) ) { $ item -> setParameter ( json_decode ( $ value , true ) ) ; } else { $ item -> setParameter ( ( array ) $ value ) ; } break ; case 'job.result' : if ( is_string ( $ value ) ) { $ item -> setResult ( json_decode ( $ value , true ) ) ; } else { $ item -> setResult ( ( array ) $ value ) ; } break ; } } return $ item ; }
Creates a new job item and sets the properties from the given array.

@param array $entry Associative list of name and value properties using the "job" prefix
@return MAdmin_Job_Item_Interface Job item
Creates a new job item and sets the properties from the given array .