zentaobiz.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. public function getCustomCalcFile($code)
  3. {
  4. return $this->loadExtension('zentaobiz')->getCustomCalcFile($code);
  5. }
  6. public function create($metric)
  7. {
  8. return $this->loadExtension('zentaobiz')->create($metric);
  9. }
  10. public function update($id, $metric)
  11. {
  12. return $this->loadExtension('zentaobiz')->update($id, $metric);
  13. }
  14. public function getMetricPHPTemplate($metricID)
  15. {
  16. return $this->loadExtension('zentaobiz')->getMetricPHPTemplate($metricID);
  17. }
  18. public function updateMetric($metric)
  19. {
  20. return $this->loadExtension('zentaobiz')->updateMetric($metric);
  21. }
  22. public function checkCustomCalcExists($code)
  23. {
  24. return $this->loadExtension('zentaobiz')->checkCustomCalcExists($code);
  25. }
  26. public function checkCustomCalcSyntax($code)
  27. {
  28. return $this->loadExtension('zentaobiz')->checkCustomCalcSyntax($code);
  29. }
  30. public function checkCustomCalcClassName($code)
  31. {
  32. return $this->loadExtension('zentaobiz')->checkCustomCalcClassName($code);
  33. }
  34. public function checkCustomCalcClassMethod($code)
  35. {
  36. return $this->loadExtension('zentaobiz')->checkCustomCalcClassMethod($code);
  37. }
  38. public function checkCustomCalcRuntime($code)
  39. {
  40. return $this->loadExtension('zentaobiz')->checkCustomCalcRuntime($code);
  41. }
  42. public function runCustomCalc($code)
  43. {
  44. return $this->loadExtension('zentaobiz')->runCustomCalc($code);
  45. }
  46. public function getCalcDir($metric)
  47. {
  48. return $this->loadExtension('zentaobiz')->getCalcDir($metric);
  49. }
  50. public function moveCalcFile($calcDir, $code)
  51. {
  52. return $this->loadExtension('zentaobiz')->moveCalcFile($calcDir, $code);
  53. }