예제 #1
0
 public function getParent()
 {
     return $this->control->getParent();
 }
예제 #2
0
파일: DataGrid.php 프로젝트: OCC2/occ2pacs
 /**
  * @return PresenterComponent
  */
 public function getParent()
 {
     $parent = parent::getParent();
     if (!$parent instanceof PresenterComponent) {
         throw new DataGridHasToBeAttachedToPresenterComponentException("DataGrid is attached to: '" . get_class($parent) . "', but instance of PresenterComponent is needed.");
     }
     return $parent;
 }