public function getByPageId()
 {
     $pageId = $this->getRequiredParameter('pid');
     $parts = PagePart::where('page_id', (int) $pageId)->get();
     $this->setContent($parts->toArray());
 }