Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • ActivateOperation
  • AvailableSitesBlock
  • ConfigBlock
  • ConfigOperation
  • DeactivateOperation
  • DeleteBlock
  • DeleteOperation
  • EditBlock
  • Hooks
  • IsUniqueOperation
  • LoginComboElement
  • LoginForm
  • LoginOperation
  • LogoutOperation
  • ManageBlock
  • Model
  • Module
  • OwnershipResolver
  • PermissionResolver
  • ProfileController
  • QueryOperationOperation
  • SaveOperation
  • UnlockLoginOperation
  • Update20131021
  • User
  • ViewProvider

Interfaces

  • OwnershipResolverInterface
  • PermissionResolverInterface

Traits

  • LoggedAtProperty

Exceptions

  • WebsiteAdminNotAccessible

Class ViewProvider

Provides data for a view.

Icybee\Modules\Views\Provider
Extended by Icybee\Modules\Views\ActiveRecordProvider
Extended by Icybee\Modules\Users\ViewProvider
Namespace: Icybee\Modules\Users
Located at vendor/icanboogie-modules/users/lib/views/provider.php

Methods summary

public array[ActiveRecord]|ActiveRecord|null
# __invoke( )

Returns

array[ActiveRecord]|ActiveRecord|null

Throws

a
HTTPException with code 404 if no record matching the conditions could be found and the view is of type "view".
a
HTTPException with code 401 if the record is offline and user don't have access permission and the view is of type "view".

See

BriskView.Provider::__invoke()

Overrides

Icybee\Modules\Views\ActiveRecordProvider::__invoke
protected
# alter_conditions( array $conditions )

Returns the conditions unaltered.

Returns the conditions unaltered.

Parameters

$conditions
array
$conditions

See

Icybee\Views.Provider::alter_conditions()

Overrides

Icybee\Modules\Views\Provider::alter_conditions
protected ICanBoogie\ActiveRecord\Query
# alter_query( ICanBoogie\ActiveRecord\Query $query, array $conditions )

Alters the query to search for records from the same constructor, a similar site and a similar language.

Alters the query to search for records from the same constructor, a similar site and a similar language.

The method also alters the query if the nid or slug conditions are defined.

Finaly if the return type is RETURN_MANY the query is altered to search for online nodes only.

Parameters

$query
ICanBoogie\ActiveRecord\Query
$query
$conditions
array
$conditions

Returns

ICanBoogie\ActiveRecord\Query

See

BriskView.ActiveRecordProvider::alter_query()

Overrides

Icybee\Modules\Views\ActiveRecordProvider::alter_query
protected
# alter_context( BlueTihi\Context $context, ICanBoogie\ActiveRecord\Query $query, array $conditions )

Returns the rendering context unaltered.

Returns the rendering context unaltered.

Parameters

$context
array
$context
$query
$conditions

See

Icybee\Views.Provider::alter_context()

Overrides

Icybee\Modules\Views\Provider::alter_context
protected ActiveRecord|array[ActiveRecord]|null
# extract_result( ICanBoogie\ActiveRecord\Query $query )

Returns

ActiveRecord|array[ActiveRecord]|null
If the view's type is "view" the method returns an ActiveRecord, or null if no record matching the conditions could be found, otherwise the method returns an array of ActiveRecord.

See

BriskView.ActiveRecordProvider::extract_result()

Overrides

Icybee\Modules\Views\ActiveRecordProvider::extract_result

Methods inherited from Icybee\Modules\Views\ActiveRecordProvider

count_result(), create_query(), fire_alter_conditions(), fire_alter_context(), fire_alter_query(), limit_result()

Methods inherited from Icybee\Modules\Views\Provider

__construct(), __get()

Magic methods summary

Constants summary

Constants inherited from Icybee\Modules\Views\Provider

RETURNS_MANY, RETURNS_ONE, RETURNS_OTHER

Properties summary

Properties inherited from Icybee\Modules\Views\Provider

$conditions, $context, $module, $returns, $view

Autodoc API documentation generated by ApiGen 2.8.0