예제 #1
0
 public static function getPosition($key = null, $val = null)
 {
     if (is_null($key)) {
         $c = Position::get();
         self::$position = $c;
         return new self();
     } else {
         $c = Position::where($key, '=', $val)->first();
         self::$position = $c;
         return $c;
     }
 }
예제 #2
0
파일: Prefs.php 프로젝트: awidarto/jexadmin
 public static function getPosition()
 {
     $c = Position::get();
     self::$position = $c;
     return new self();
 }