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

  • A
  • Actions
  • Alert
  • AlterCSSClassNamesEvent
  • AssetsCollector
  • Button
  • CSSCollector
  • Dataset
  • Date
  • DateRange
  • DateTime
  • Decorator
  • Document
  • DropdownMenu
  • Element
  • File
  • Form
  • Group
  • Helpers
  • HTMLString
  • Iterator
  • JSCollector
  • ListView
  • ListViewColumn
  • Modal
  • Pager
  • Popover
  • PopoverWidget
  • Ranger
  • RecursiveIterator
  • Salutation
  • Searchbox
  • Section
  • SplitButton
  • Text
  • Widget

Interfaces

  • CSSClassNames
  • DecoratorInterface
  • HTMLStringInterface
  • Validator

Traits

  • CSSClassNamesProperty

Exceptions

  • ElementIsEmpty

Functions

  • _array_flatten_callback
  • array_flatten
  • array_insert
  • check_session
  • dump
  • escape
  • escape_all
  • format
  • format_size
  • get_accessible_file
  • get_document
  • normalize
  • render_css_class
  • render_exception
  • retrieve_form
  • retrieve_form_errors
  • shorten
  • stable_sort
  • store_form
  • store_form_errors
  • strip
  • t

Class Document

An HTML document.

ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
Extended by Brickrouge\Document

Direct known subclasses

Icybee\Document

Namespace: Brickrouge
Located at vendor/brickrouge/brickrouge/lib/document.php

Methods summary

public
# __construct( )

Constructor.

Constructor.

Creates the Javascript and CSS collectors.

protected array
# get_assets( )

Returns the Javascript and CSS assets used by the document as an array or URLs.

Returns the Javascript and CSS assets used by the document as an array or URLs.

Returns

array
The assets used by the document.
protected
# set_assets( array $assets )

Sets the assets of the document.

Sets the assets of the document.

Parameters

$assets
array
$assets An array where CSS and JS assets are stored under the 'css' and 'js' keys respectively. Each asset is defined as a key/value pair where the key if the path to the asset and the key is its priority.

Example

$document->assets = array ( 'css' => array('brickrouge.css' => 0), 'js' => array('brickrouge.js' => 0) );
protected
# __unset_assets( )

Clears JS and CSS assets.

Clears JS and CSS assets.

Example

$document->js->add('brickrouge.js'); $document->css->add('brickrouge.css'); var_dump($document->assets); // ['css' => ['brickrouge.css'], 'js' => ['brickrouge.js']] unset($document->assets); var_dump($document->assets); // ['css' => [], 'js' => []]
public
# add_assets( array $assets )

Adds a number of assets to the document.

Adds a number of assets to the document.

Parameters

$assets
array
$assets An array where CSS and JS assets are stored under the 'css' and 'js' keys respectively. Each asset is defined as a key/value pair where the key if the path to the asset and the key is its priority.

Example

$document->add_assets ( array ( 'css' => array('brickrouge.css' => 0), 'js' => array('brickrouge.js' => 0) ) );
public static string
# resolve_url( string $path, string $relative = null )

Resolves a server path into a URL accessible from the DOCUMENT_ROOT.

Resolves a server path into a URL accessible from the DOCUMENT_ROOT.

Unless the path uses a scheme (http://, https:// or phar://) it is always considered relative to the path specified by the $relative parameter or to the DOCUMENT_ROOT.

Parameters

$path
string
$path
$relative
string
$relative Relative path that can be used to resolve the path. If the parameter is null the method tries to _guess_ the relative path using the resolve_root() private method.

Returns

string
The URL resolved from the path.

Methods inherited from ICanBoogie\Object

from(), resolve_facade_properties(), resolve_private_properties(), to_array(), to_json()

Methods inherited from ICanBoogie\ToArrayRecursive

to_array_recursive()

Methods used from ICanBoogie\ToArrayRecursiveTrait

to_array_recursive()

Methods used from ICanBoogie\PrototypeTrait

__call(), __get(), __set(), __sleep(), __wakeup(), get_prototype(), has_method(), has_property(), last_chance_get(), last_chance_set()

Magic methods summary

Properties summary

public mixed $body
#
public Brickrouge\JSCollector $js
#

Collector for Javascript assets.

Collector for Javascript assets.

public Brickrouge\CSSCollector $css
#

Collector for CSS assets.

Collector for CSS assets.

Magic properties

public mixed $assets
#

array The Javascript and CSS assets used by the document.

array The Javascript and CSS assets used by the document.

Magic properties inherited from ICanBoogie\Object

$prototype

Autodoc API documentation generated by ApiGen 2.8.0