Yii Framework v1.1.10 绫诲弬鑰

IUserIdentity

system.base
缁ф壙 interface IUserIdentity
瀛愮被 CBaseUserIdentity, CUserIdentity
婧愯嚜 1.0
鐗堟湰 $Id: interfaces.php 3515 2011-12-28 12:29:24Z mdomba $
婧愮爜 framework/base/interfaces.php
IUserIdentity鎺ュ彛鏄敱涓涓敤鎴烽獙璇佺被瀹炵幇鐨勩

涓涓韩浠斤紝 浠h〃涓绉嶆柟娉曟潵楠岃瘉鐢ㄦ埛鍜屾绱㈠敮涓韬唤鐢ㄦ埛闇瑕佺殑淇℃伅銆 瀹冮氬父鐢ㄤ簬鐢ㄦ埛鐨勫簲鐢ㄧ▼搴忕粍浠

鍏叡鏂规硶

闅愯棌缁ф壙鏂规硶

鏂规硶鎻忚堪瀹氫箟鍦
authenticate() 楠岃瘉鐢ㄦ埛韬唤銆 IUserIdentity
getId() 杩斿洖涓涓硷紝璇ュ间唬琛ㄥ敮涓鐨勮韩浠姐 IUserIdentity
getIsAuthenticated() 杩斿洖涓涓硷紝璇ュ艰〃绀烘槸鍚﹂獙璇佽韩浠姐 IUserIdentity
getName() 杩斿洖鏍囪瘑鐨勬樉绀哄悕绉帮紙濡傜敤鎴峰悕锛夈 IUserIdentity
getPersistentStates() 杩斿洖棰濆鐨勮韩浠戒俊鎭紝闇瑕佺敤鍦ㄧ敤鎴蜂細璇濇湡闂寸殑鎸佷箙鎬у瓨鍌 IUserIdentity

鏂规硶璇︾粏

authenticate() 鏂规硶
abstract public boolean authenticate()
{return} boolean 鏄惁楠岃瘉鎴愬姛銆
婧愮爜锛 framework/base/interfaces.php#264 (鏄剧ず)
public function authenticate();

楠岃瘉鐢ㄦ埛韬唤銆 鏉ラ獙璇佺敤鎴锋墍闇鐨勪俊鎭 閫氬父鏄湪鏋勯犲嚱鏁颁腑鎻愪緵銆

getId() 鏂规硶
abstract public mixed getId()
{return} mixed 鍞竴浠h〃韬唤鐨勪竴涓硷紙濡備富閿殑鍊硷級銆
婧愮爜锛 framework/base/interfaces.php#274 (鏄剧ず)
public function getId();

杩斿洖涓涓硷紝璇ュ间唬琛ㄥ敮涓鐨勮韩浠姐

getIsAuthenticated() 鏂规硶
abstract public boolean getIsAuthenticated()
{return} boolean 鏄惁鏄湁鏁堢殑韬唤銆
婧愮爜锛 framework/base/interfaces.php#269 (鏄剧ず)
public function getIsAuthenticated();

杩斿洖涓涓硷紝璇ュ艰〃绀烘槸鍚﹂獙璇佽韩浠姐

getName() 鏂规硶
abstract public string getName()
{return} string 韬唤鐨勬樉绀哄悕绉般
婧愮爜锛 framework/base/interfaces.php#279 (鏄剧ず)
public function getName();

杩斿洖鏍囪瘑鐨勬樉绀哄悕绉帮紙濡傜敤鎴峰悕锛夈

getPersistentStates() 鏂规硶
abstract public array getPersistentStates()
{return} array 棰濆鐨勮韩浠戒俊鎭紝闇瑕佸湪鐢ㄦ埛浼氳瘽鏈熼棿鎸佷箙瀛樺偍锛堜笉鍖呮嫭 id锛夈
婧愮爜锛 framework/base/interfaces.php#284 (鏄剧ず)
public function getPersistentStates();

杩斿洖棰濆鐨勮韩浠戒俊鎭紝闇瑕佺敤鍦ㄧ敤鎴蜂細璇濇湡闂寸殑鎸佷箙鎬у瓨鍌

Copyright © 2008-2011 by Yii Software LLC
All Rights Reserved.