TreeHelper.php 389 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace common\helpers;
  3. /**
  4. * Class TreeHelper
  5. * @package common\helpers
  6. * @author jianyan74 <751393839@qq.com>
  7. */
  8. class TreeHelper
  9. {
  10. /**
  11. * @return string
  12. */
  13. public static function prefixTreeKey($id)
  14. {
  15. return $id . '-';
  16. }
  17. /**
  18. * @return string
  19. */
  20. public static function defaultTreeKey()
  21. {
  22. return '0-';
  23. }
  24. }
粤ICP备19079148号