コード例 #1
0
 /**
  * Gets the panel defs from the viewdef array
  *
  * @param array $viewdef The view def array
  * @return array
  */
 protected function getPanelsFromViewDef($viewdef)
 {
     if (isset($viewdef['panels'])) {
         $panels = $viewdef['panels'];
     } else {
         $defs = MetaDataFiles::mapArrayToPath(MetaDataFiles::getViewDefVar($this->_view), $viewdef);
         $panels = isset($defs['panels']) ? $defs['panels'] : null;
     }
     return $panels;
 }