Silla.IO API
  • Namespace
  • Class
  • Tree
  • Todo
  • Download

Namespaces

  • App
    • Controllers
  • CMS
    • Controllers
    • Helpers
    • Models
  • Configurations
    • CI
    • Development
    • Production
    • Staging
  • Core
    • Base
    • CLI
      • Cache
      • DB
    • Helpers
    • Modules
      • Cache
        • Adapters
        • Interfaces
      • Crypt
      • DB
        • Adapters
        • Decorators
          • Interfaces
        • Features
          • Paginator
        • Interfaces
      • Registry
      • Render
        • Adapters
        • Interfaces
      • Router
      • Session
        • Adapters
        • Interfaces
  • None
  • Tasks
    • DB

Classes

  • CMSHelp
  • CMSUser
  • CMSUserRole

Class CMSUser

Class CMSUser definition.

Core\Base\Model
Extended by CMS\Models\CMSUser implements Core\Modules\DB\Decorators\Interfaces\TimezoneAwareness
Namespace: CMS\Models
Located at models/cmsuser.php

Methods summary

public static array
# timezoneAwareFields( )

Definition of the timezone aware fields.

Definition of the timezone aware fields.

Returns

array

Overrides

Core\Base\Model::timezoneAwareFields

Implementation of

Core\Modules\DB\Decorators\Interfaces\TimezoneAwareness::timezoneAwareFields()
public
# afterValidate( )

Additional validations.

Additional validations.

Overrides

Core\Base\Model::afterValidate
public
# beforePopulate( )

Store current password for later reference.

Store current password for later reference.

Overrides

Core\Base\Model::beforePopulate
public
# beforeSave( )

Hashes the new password if the password is different form the stored one.

Hashes the new password if the password is different form the stored one.

Overrides

Core\Base\Model::beforeSave
public boolean
# owns( string $entityModel )

Checks whether the user has ownership over an entity model.

Checks whether the user has ownership over an entity model.

Parameters

$entityModel
Entity Model class name.

Returns

boolean
public string
# getAvatar( integer $size = 70, string $type = 'mm', string $rating = 'g' )

Get either a Gravatar URL or complete image tag for a specified email address.

Get either a Gravatar URL or complete image tag for a specified email address.

Parameters

$size
Size in pixels, defaults to 80px [ 1 - 2048 ].
$type
Default image-set to use [ 404 | mm | identicon | monsterid | wavatar ].
$rating
Maximum rating (inclusive) [ g | pg | r | x ].

Returns

string
public static
# incrementLoginAttempts( string $email )

Increments User Login attempts.

Increments User Login attempts.

Parameters

$email
Email of the user.

Methods inherited from Core\Base\Model

__call(), __construct(), __get(), __isset(), __set(), __unset(), afterCreate(), afterDelete(), afterPopulate(), afterSave(), afterUpdate(), beforeCreate(), beforeDelete(), beforeUpdate(), beforeValidate(), delete(), detach(), errors(), exists(), fields(), fieldsI18N(), find(), fire(), getAssociationMetaDataByKey(), getError(), getI18nLocale(), getI18nSchema(), getPrimaryKeyValue(), getSchema(), hasErrors(), i18nForeignKeyField(), i18nLocaleField(), isNewRecord(), listeners(), on(), primaryKeyField(), removeError(), save(), setError(), setI18nLocale()

Properties summary

public static string $tableName

Table storage name.

Table storage name.

# 'cms_users'
public array $belongsTo

Belongs To associations definition.

Belongs To associations definition.

# array( 'role' => array( 'table' => 'cms_userroles', 'key' => 'role_id', 'relative_key' => 'id', 'class_name' => 'CMS\Models\CMSUserRole', ), )
private string $currentPassword

Current password.

Current password.

#

Properties inherited from Core\Base\Model

$errors, $fields, $fieldsI18n, $hasAndBelongsToMany, $hasMany, $i18nForeignKeyField, $i18nJoinType, $i18nLocale, $i18nLocaleField, $i18nLocalisation, $i18nTableName, $i18nTableNameSuffix, $isI18n, $listeners, $primaryKeyField, $query

Silla.IO API API documentation generated by ApiGen