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

  • AdjustNode
  • ConfigOperation
  • DeleteBlock
  • DeleteOperation
  • EditBlock
  • ExportBlock
  • ExportOperation
  • Helpers
  • Hooks
  • ImportOperation
  • ManageBlock
  • Model
  • Module
  • Node
  • OfflineOperation
  • OnlineOperation
  • PopNode
  • QueryOperationOperation
  • SaveOperation
  • TitleSlugCombo
  • Update20131208
  • Update20140405
  • ViewProvider

Functions

  • slugize

Class ViewProvider

Provides data for a view.

Icybee\Modules\Views\Provider
Extended by Icybee\Modules\Views\ActiveRecordProvider
Extended by Icybee\Modules\Nodes\ViewProvider

Direct known subclasses

Icybee\Modules\Contents\ViewProvider

Namespace: Icybee\Modules\Nodes
Located at vendor/icanboogie-modules/nodes/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".

Overrides

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

Returns the conditions unaltered.

Returns the conditions unaltered.

Parameters

$conditions
array
$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

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

Overrides

Icybee\Modules\Views\Provider::alter_context

Methods inherited from Icybee\Modules\Views\ActiveRecordProvider

count_result(), create_query(), extract_result(), 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