Overview

Namespaces

  • Kotchasan
    • Cache
    • Database
    • Http
    • Log
    • Orm
  • None
  • PDF
  • PHP
  • Psr
    • Cache
    • Http
      • Message
    • Log

Classes

  • Accordion
  • ArrayTool
  • CKEditor
  • Collection
  • Config
  • Controller
  • Country
  • Csv
  • Curl
  • Currency
  • Database
  • DataTable
  • Date
  • DOMNode
  • DOMParser
  • Email
  • File
  • Files
  • Form
  • Grid
  • Html
  • Htmldoc
  • HtmlTable
  • Image
  • InputItem
  • Inputs
  • KBase
  • Language
  • ListItem
  • Login
  • Menu
  • Mime
  • Model
  • Number
  • Object
  • Password
  • Pdf
  • Province
  • Router
  • Singleton
  • Tab
  • TableRow
  • Template
  • Text
  • Validator
  • View
  • Overview
  • Namespace
  • Class
  • Tree

Class Login

คลาสสำหรับตรวจสอบการ Login.

Kotchasan\KBase
Extended by Kotchasan\Login
Namespace: Kotchasan
Author: Goragod Wiriya admin@goragod.com
Since: 1.0
Located at Kotchasan/Login.php
Methods summary
public string|array
# checkLogin( array $params )

ฟังก์ชั่นตรวจสอบการ login เข้าระบบสำเร็จคืนค่าแอเรย์ข้อมูลสมาชิก, ไม่สำเร็จ คืนค่าข้อความผิดพลาด.

ฟังก์ชั่นตรวจสอบการ login เข้าระบบสำเร็จคืนค่าแอเรย์ข้อมูลสมาชิก, ไม่สำเร็จ คืนค่าข้อความผิดพลาด.

Parameters

$params
ข้อมูลการ login ที่ส่งมา $params = array('username' => '', 'password' => '');

Returns

string|array
public static static
# create( )

ตรวจสอบการ login เมื่อมีการเรียกใช้ class new Login action=logout ออกจากระบบ มาจากการ submit ตรวจสอบการ login ถ้าไม่มีทั้งสองส่วนด้านบน จะตรวจสอบการ login จาก session.

ตรวจสอบการ login เมื่อมีการเรียกใช้ class new Login action=logout ออกจากระบบ มาจากการ submit ตรวจสอบการ login ถ้าไม่มีทั้งสองส่วนด้านบน จะตรวจสอบการ login จาก session.

Returns

static
public
# forgot( Kotchasan\Http\Request $request )

ฟังก์ชั่นส่งอีเมลลืมรหัสผ่าน.

ฟังก์ชั่นส่งอีเมลลืมรหัสผ่าน.

public static array|null
# isAdmin( )

ฟังก์ชั่นตรวจสอบสถานะแอดมิน คืนค่าข้อมูลสมาชิก (แอเรย์) ถ้าเป็นผู้ดูแลระบบและเข้าระบบแล้ว ไม่ใช่คืนค่า null.

ฟังก์ชั่นตรวจสอบสถานะแอดมิน คืนค่าข้อมูลสมาชิก (แอเรย์) ถ้าเป็นผู้ดูแลระบบและเข้าระบบแล้ว ไม่ใช่คืนค่า null.

Returns

array|null
public static array|null
# isMember( )

ฟังก์ชั่นตรวจสอบการเข้าระบบ คืนค่าข้อมูลสมาชิก (แอเรย์) ถ้าเป็นสมาชิกและเข้าระบบแล้ว ไม่ใช่คืนค่า null.

ฟังก์ชั่นตรวจสอบการเข้าระบบ คืนค่าข้อมูลสมาชิก (แอเรย์) ถ้าเป็นสมาชิกและเข้าระบบแล้ว ไม่ใช่คืนค่า null.

Returns

array|null
public static array|null
# checkStatus( array $login, array|integer $statuses )

ตรวจสอบสถานะสมาชิก แอดมินสูงสุด (status=1) ทำได้ทุกอย่าง คืนค่าข้อมูลสมาชิก (แอเรย์) ถ้าไม่สามารถทำรายการได้คืนค่า null.

ตรวจสอบสถานะสมาชิก แอดมินสูงสุด (status=1) ทำได้ทุกอย่าง คืนค่าข้อมูลสมาชิก (แอเรย์) ถ้าไม่สามารถทำรายการได้คืนค่า null.

Parameters

$login
$statuses

Returns

array|null
Properties summary
public static boolean $from_submit

ตัวแปรบอกว่ามาจากการ submit true มาจากการ submit false default.

ตัวแปรบอกว่ามาจากการ submit true มาจากการ submit false default.

# false
public static string $login_input

ชื่อ Input ที่ต้องการให้ active login_username หรือ login_password.

ชื่อ Input ที่ต้องการให้ active login_username หรือ login_password.

#
public static string $login_message

ข้อความจาก Login Class.

ข้อความจาก Login Class.

#
public static array $login_params

ตัวแปรเก็บข้อมูลที่ส่งมา เช่น username, password.

ตัวแปรเก็บข้อมูลที่ส่งมา เช่น username, password.

# array()
Properties inherited from Kotchasan\KBase
$cfg, $request
kotchasan API documentation generated by ApiGen