flow.php 859 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * __construct
  4. *
  5. * @access public
  6. * @return void
  7. */
  8. public function __construct($appName = '')
  9. {
  10. parent::__construct($appName);
  11. if($this->app->isServing() || (defined('RUN_MODE') and RUN_MODE == 'api')) $this->loadExtension('flow')->loadCustomLang();
  12. }
  13. /**
  14. * Get deleted objects.
  15. *
  16. * @param string $type all|hidden
  17. * @param string $orderBy
  18. * @param object $pager
  19. * @access public
  20. * @return array
  21. * @param string $objectType
  22. */
  23. public function getTrashes($objectType, $type, $orderBy, $pager = null)
  24. {
  25. return $this->loadExtension('flow')->getTrashes($objectType, $type, $orderBy, $pager);
  26. }
  27. /**
  28. * Transform the actions for display.
  29. *
  30. * @param mixed[] $actions
  31. * @access public
  32. * @return void
  33. */
  34. public function transformActions($actions)
  35. {
  36. return $this->loadExtension('flow')->transformActions($actions);
  37. }