You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SpLuGetUserPermission.php 894B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * AUTO GENERATED BY LUTICATE GENERATOR
  4. * ANY CHANGES WILL BE OVERWRITTEN
  5. */
  6. namespace Luticate\Auth\DataAccess\SP;
  7. use Luticate\Utils\LuSpModel;
  8. use Illuminate\Support\Facades\DB;
  9. class SpLuGetUserPermission extends LuSpModel {
  10. protected static function damToDbo($dam)
  11. {
  12. if (is_null($dam))
  13. return null;
  14. $dbo = new SpLuGetUserPermission();
  15. $dbo->setVal($dam->val);
  16. return $dbo;
  17. }
  18. public static function execute($_user_id, $_permisson_name)
  19. {
  20. $values = DB::select('SELECT * FROM sp_lu_get_user_permission(?, ?)', array($_user_id, $_permisson_name));
  21. return self::damToDbo($values[0]);
  22. }
  23. /**
  24. * @var boolean
  25. */
  26. protected $_val;
  27. public function getVal()
  28. {
  29. return $this->_val;
  30. }
  31. public function setVal($value)
  32. {
  33. $this->_val = $value;
  34. }
  35. }