instance->getByID($chartID); if(dao::isError()) return dao::getError(); return $result; } /** * Test getTreeMenu method. * * @param int $groupID * @access public * @return void */ public function getTreeMenuTest(int $groupID): array { $result = $this->instance->getTreeMenu($groupID); if(dao::isError()) return dao::getError(); return $result; } /** * Test getDefaultCharts method. * * @param int $groupID * @access public * @return void */ public function getDefaultChartsTest(int $groupID): array { $result = $this->instance->getDefaultCharts($groupID); if(dao::isError()) return dao::getError(); return $result; } /** * Test switchFieldName method. * * @param array $fields * @param array $langs * @param array $metrics * @param string $index * @access public * @return string */ public function switchFieldNameTest(array $fields, array $langs, array $metrics, string $index): string { $result = $this->objectTao->switchFieldName($fields, $langs, $metrics, $index); if(dao::isError()) return dao::getError(); return $result; } /** * Test isChartHaveData method. * * @param array $options * @param string $type * @access public * @return bool */ public function isChartHaveDataTest(array $options, string $type): bool { $result = $this->instance->isChartHaveData($options, $type); if(dao::isError()) return dao::getError(); return $result; } /** * Test isClickable method. * * @param int $chartID * @param string $action * @access public * @return mixed */ public function isClickableTest(int $chartID, string $action) { $chart = $this->getByIdTest($chartID); if(!$chart) return false; $result = chartModel::isClickable($chart, $action); if(dao::isError()) return dao::getError(); return $result; } }