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

  • Captcha
  • CMSUsers
  • DataTables
  • Export
  • FlashMessage
  • Ownership
  • PDF

Class CMSUsers

Users Helper Class Definition.

Namespace: CMS\Helpers
Used by: Core\Base\Entity::export()
Located at helpers/cmsusers.php

Methods summary

public static array
# getAccessibilityScope( )

Get Global Application CMS accessibility scope.

Get Global Application CMS accessibility scope.

Returns

array

Uses

Core\Config()
public static boolean
# userCan( array $scope, CMS\Models\CMSUser $user = null )

Verifies whether a user can access a specific resource scope.

Verifies whether a user can access a specific resource scope.

Parameters

$scope
Example array('controller' => '' , 'action' =>'').
$user
User instance to verify.

Returns

boolean
public static string
# getGravatar( string $email, integer $s = 70, string $d = 'mm', string $r = '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

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

Returns

string
String containing either just a URL or a complete image tag.

Uses

Core\Config()
public static
# block( CMS\Models\CMSUser $user, string $action = 'block' )

Flags a user as blocked.

Flags a user as blocked.

Parameters

$user
User instance
$action
Type of notification action.

Constants summary

string NOTIFY

Access block user notification type.

Access block user notification type.

Type

string
# ''
Silla.IO API API documentation generated by ApiGen