Inheritance: extends Pimcore\Model\Listing\JsonListing
コード例 #1
0
 public function getReportConfigAction()
 {
     $reports = [];
     $list = new CustomReport\Config\Listing();
     $items = $list->load();
     foreach ($items as $report) {
         $reports[] = array("name" => $report->getName(), "niceName" => $report->getNiceName(), "iconClass" => $report->getIconClass(), "group" => $report->getGroup(), "groupIconClass" => $report->getGroupIconClass(), "menuShortcut" => $report->getMenuShortcut());
     }
     $this->_helper->json(array("success" => true, "reports" => $reports));
 }
コード例 #2
0
ファイル: Config.php プロジェクト: pimcore/pimcore
 /**
  * @return array
  */
 public static function getReportsList()
 {
     $reports = [];
     $list = new Config\Listing();
     $items = $list->load();
     foreach ($items as $item) {
         $reports[] = ["id" => $item->getName(), "text" => $item->getName()];
     }
     return $reports;
 }