1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
-
- /**
- * AUTO GENERATED BY LUTICATE GENERATOR
- * ANY CHANGES WILL BE OVERWRITTEN
- */
-
- namespace Luticate\Auth\DataAccess\SP;
-
- use Luticate\Utils\LuSpModel;
- use Illuminate\Support\Facades\DB;
-
- class SpLuGetUserPermission extends LuSpModel {
-
- protected static function damToDbo($dam)
- {
- if (is_null($dam))
- return null;
- $dbo = new SpLuGetUserPermission();
-
- $dbo->setVal($dam->val);
-
- return $dbo;
- }
-
- public static function execute($_user_id, $_permisson_name)
- {
- $values = DB::select('SELECT * FROM sp_lu_get_user_permission(?, ?)', array($_user_id, $_permisson_name));
- return self::damToDbo($values[0]);
- }
-
- /**
- * @var boolean
- */
- protected $_val;
- public function getVal()
- {
- return $this->_val;
- }
- public function setVal($value)
- {
- $this->_val = $value;
- }
- }
|