public function handleItem(SS_HTTPRequest $r) {
		if($r->param('ID') == "new") {
			$item = Object::create($this->relationClass);
		}
		else {
			$item = DataList::create($this->relationClass)->byID((int) $r->param('ID'));
		}
		if($item) {
			$handler = DashboardHasManyRelationEditor_ItemRequest::create($this->controller->getDashboard(), $this->controller, $this, $item);
			return $handler->handleRequest($r, DataModel::inst());
		}		
		return $this->httpError(404);
	}
public function handleItem(SS_HTTPRequest $r) {
		if($r->param('ID') == "new") {
			$item = Object::create($this->relationClass);
		}
		else {
			$item = DataList::create($this->relationClass)->byID((int) $r->param('ID'));
		}
		if($item) {
			$handler = DashboardHasManyRelationEditor_ItemRequest::create($this->controller->getDashboard(), $this->controller, $this, $item);
			return $handler->handleRequest($r, DataModel::inst());
		}		
		return $this->httpError(404);
	}
public function handleItem ( SS_HTTPRequest $ r ) { if ( $ r -> param ( 'ID' ) == "new" ) { $ item = Object :: create ( $ this -> relationClass ) ; } else { $ item = DataList :: create ( $ this -> relationClass ) -> byID ( ( int ) $ r -> param ( 'ID' ) ) ; } if ( $ item ) { $ handler = DashboardHasManyRelationEditor_ItemRequest :: create ( $ this -> controller -> getDashboard ( ) , $ this -> controller , $ this , $ item ) ; return $ handler -> handleRequest ( $ r , DataModel :: inst ( ) ) ; } return $ this -> httpError ( 404 ) ; }
Handles a request for a record in the table

@param SS_HTTPRequest
@return SS_HTTPResponse
Handles a request for a record in the table