PHP Класс DbaController, vanilla

Наследование: extends DashboardController
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$Form Gdn_Form
$Model DBAModel

Открытые методы

Метод Описание
counts ( boolean $Table = false, boolean $Column = false, boolean $From = false, boolean $To = false, boolean $Max = false ) Recalculate counters.
fixInsertUserID ( boolean | string $Table = false ) Scan a table for invalid InsertUserID values and update with SystemUserID
fixPermissions ( ) Set Member-like permissions on all roles with missing permissions.
fixUrlCodes ( $Table, $Column )
fixUserRole ( ) Look for users with an invalid role and apply the role specified to those users.
initialize ( ) Runs before every call to this controller.
rebuildCategoryTree ( ) Fix the category tree after an import that only gives a sort & parent.
resetPermissions ( ) Reset all role permissions based on role type.

Защищенные методы

Метод Описание
_setJob ( string $Name ) Set a job.

Описание методов

_setJob() защищенный Метод

Set a job.
protected _setJob ( string $Name )
$Name string

counts() публичный Метод

Recalculate counters.
public counts ( boolean $Table = false, boolean $Column = false, boolean $From = false, boolean $To = false, boolean $Max = false )
$Table boolean
$Column boolean
$From boolean
$To boolean
$Max boolean

fixInsertUserID() публичный Метод

Scan a table for invalid InsertUserID values and update with SystemUserID
public fixInsertUserID ( boolean | string $Table = false )
$Table boolean | string The name of the table to fix InsertUserID in.

fixPermissions() публичный Метод

Useful for after an import that didn't include permissions but did include a whole lotta roles you don't want to edit manually.
public fixPermissions ( )

fixUrlCodes() публичный Метод

public fixUrlCodes ( $Table, $Column )
$Table
$Column

fixUserRole() публичный Метод

Look for users with an invalid role and apply the role specified to those users.
public fixUserRole ( )

initialize() публичный Метод

Runs before every call to this controller.
public initialize ( )

rebuildCategoryTree() публичный Метод

Fix the category tree after an import that only gives a sort & parent.
public rebuildCategoryTree ( )

resetPermissions() публичный Метод

Reset all role permissions based on role type.
public resetPermissions ( )

Описание свойств

$Form публичное свойство

public Gdn_Form $Form
Результат Gdn_Form

$Model публичное свойство

public DBAModel $Model
Результат DBAModel