PHP 클래스 Piwik\Plugins\Installation\Rule_checkUserPrivileges

The following privileges are required for Piwik to run: - CREATE - ALTER - SELECT - INSERT - UPDATE - DELETE - DROP - CREATE TEMPORARY TABLES
상속: extends HTML_QuickForm2_Rul\HTML_QuickForm2_Rule
파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
getRequiredPrivileges ( ) : array Returns an array describing the database privileges required for Piwik to run. The array maps privilege names with one or more SQL queries that can be used to test if the current user has the privilege.
getRequiredPrivilegesPretty ( ) : string Returns a string description of the database privileges required for Piwik to run.
validateOwner ( ) Checks that the DB user entered in the form has the necessary privileges for Piwik to run.

비공개 메소드들

메소드 설명
createDatabaseObject ( ) : array Creates a database object using the connection information entered in the form.
dropExtraTables ( Piwik\Db $db ) Drops the tables created by the privilege checking queries, if they exist.
isAccessDenied ( Exception $ex ) : boolean Checks if an exception that was thrown after running a query represents an 'access denied' error.

메소드 상세

getRequiredPrivileges() 공개 정적인 메소드

NOTE: LOAD DATA INFILE & LOCK TABLES privileges are not **required** so they're not checked.
public static getRequiredPrivileges ( ) : array
리턴 array

getRequiredPrivilegesPretty() 공개 정적인 메소드

Returns a string description of the database privileges required for Piwik to run.
public static getRequiredPrivilegesPretty ( ) : string
리턴 string

validateOwner() 공개 메소드

Checks that the DB user entered in the form has the necessary privileges for Piwik to run.
public validateOwner ( )