PageList.php
public function addPageFromRequest($id, RequestHelper $request)
    {
        $page = $this->createPageObject(null, null, $request);
        $this->pages[$id] = $page;
        $this->persist();
        return $page;
    }
public function addPageFromRequest($id, RequestHelper $request)
    {
        $page = $this->createPageObject(null, null, $request);
        $this->pages[$id] = $page;
        $this->persist();
        return $page;
    }
public function addPageFromRequest ( $ id , RequestHelper $ request ) { $ page = $ this -> createPageObject ( null , null , $ request ) ; $ this -> pages [ $ id ] = $ page ; $ this -> persist ( ) ; return $ page ; }
Adds a new page with the given $id with data from the request.

@param string        $id
@param RequestHelper $request
@return Page
Adds a new page with the given $id with data from the request .