AuthenticationType
class AuthenticationType extends ConcreteObject (View source)
Properties
$error | from ConcreteObject | ||
Controller | $controller | ||
protected | $authTypeID | ||
protected | $authTypeName | ||
protected | $authTypeHandle | ||
protected | $authTypeDisplayOrder | ||
protected | $authTypeIsEnabled | ||
protected | $pkgID |
Methods
No description
Return a raw list of authentication types.
Load an AuthenticationType from an array.
Load the AuthenticationTypeController into the AuthenticationType.
AuthenticationType::getPackageHandle Return the package handle.
Return an array of AuthenticationTypes that are associated with a specific package.
No description
Return loaded AuthenticationType with the given handle.
Return loaded AuthenticationType with the given ID.
No description
Returns the display name for this instance (localized and escaped accordingly to $format)
No description
No description
No description
No description
Update the name.
AuthenticationType::setAuthenticationTypeDisplayOrder Update the order for display.
No description
AuthenticationType::toggle Toggle the active state of an AuthenticationType.
No description
No description
AuthenticationType::disable Disable an authentication type.
AuthenticationType::enable Enable an authentication type.
AuthenticationType::delete Remove an AuthenticationType, this should be used sparingly.
Return the path to a file.
Return the first existing file path in this order:
- /models/authentication/types/HANDLE
- /packages/PKGHANDLE/authentication/types/HANDLE
- /concrete/models/authentication/types/HANDLE
- /concrete/core/models/authentication/types/HANDLE.
No description
Render the settings form for this type.
Render the login form for this authentication type.
Render the hook form for saving the profile settings.
No description
Render the a form to be displayed when the authentication type is already hooked.
Does this authentication type support rendering a form when it has already been hooked?
Details
loadError($error)
No description
isError()
No description
getError()
No description
setPropertiesFromArray($arr)
No description
static
camelcase($file)
No description
static
uncamelcase($string)
No description
static
getListSorted()
No description
static AuthenticationType[]
getList(bool $sorted = false, bool $activeOnly = false)
Return a raw list of authentication types.
static bool|AuthenticationType
load(array $arr)
Load an AuthenticationType from an array.
protected
loadController()
Load the AuthenticationTypeController into the AuthenticationType.
getPackageHandle()
AuthenticationType::getPackageHandle Return the package handle.
static AuthenticationType[]
getListByPackage(Package $pkg)
Return an array of AuthenticationTypes that are associated with a specific package.
static AuthenticationType
add(string $atHandle, string $atName, int $order = 0, bool|Package $pkg = false)
No description
static AuthenticationType
getByHandle(string $atHandle)
Return loaded AuthenticationType with the given handle.
static AuthenticationType
getByID(int $authTypeID)
Return loaded AuthenticationType with the given ID.
getAuthenticationTypeName()
No description
string
getAuthenticationTypeDisplayName(string $format = 'html')
Returns the display name for this instance (localized and escaped accordingly to $format)
getAuthenticationTypeDisplayOrder()
No description
getAuthenticationTypePackageID()
No description
getController()
No description
getAuthenticationTypeIconHTML()
No description
setAuthenticationTypeName(string $authTypeName)
Update the name.
setAuthenticationTypeDisplayOrder(int $order)
AuthenticationType::setAuthenticationTypeDisplayOrder Update the order for display.
getAuthenticationTypeID()
No description
toggle()
AuthenticationType::toggle Toggle the active state of an AuthenticationType.
isEnabled()
No description
getAuthenticationTypeStatus()
No description
disable()
AuthenticationType::disable Disable an authentication type.
enable()
AuthenticationType::enable Enable an authentication type.
delete()
AuthenticationType::delete Remove an AuthenticationType, this should be used sparingly.
bool|string
getAuthenticationTypeFilePath(string $_file)
Return the path to a file.
protected string
mapAuthenticationTypeFilePath(string $_file)
Return the first existing file path in this order:
- /models/authentication/types/HANDLE
- /packages/PKGHANDLE/authentication/types/HANDLE
- /concrete/models/authentication/types/HANDLE
- /concrete/core/models/authentication/types/HANDLE.
getAuthenticationTypeHandle()
No description
renderTypeForm()
Render the settings form for this type.
Settings forms are expected to handle their own submissions and redirect to the appropriate page. Otherwise, if the method exists, all $_REQUEST variables with the arrangement: HANDLE[] in an array to the AuthenticationTypeController::saveTypeForm.
renderForm(string $element = 'form', array $params = [])
Render the login form for this authentication type.
renderHook()
Render the hook form for saving the profile settings.
All settings are expected to be saved by each individual authentication type.
hasHook()
No description
renderHooked()
Render the a form to be displayed when the authentication type is already hooked.
All settings are expected to be saved by each individual authentication type.
bool
hasHooked()
Does this authentication type support rendering a form when it has already been hooked?