Метод | Описание | |
---|---|---|
addCssFile ( string $uri, string $version = null, string $type = 'text/css', string $media = null, array $attribs = [] ) | Add a CSS file to the page generated by the CMS | |
addCssInline ( string $css, string $type = 'text/css' ) | Adds an inline stylesheet (inline CSS) to the page header | |
addJavascriptFile ( string $uri, string $version = null, string $type = 'text/javascript', boolean $defer = false, boolean $async = false ) | Add a JS script file to the page generated by the CMS. | |
addJavascriptInline ( string $script, string $type = 'text/javascript' ) | Adds an inline JavaScript script to the page header | |
addLess ( string $uri, string $cssUri, string $version = null, string $type = 'text/css', string $media = null, array $attribs = [] ) | Compile a LESS file into CSS and add it to the page generated by the CMS. | |
escape ( mixed $var ) : string | Escapes a value for output in a view script. | |
getContainer ( ) : |
Returns a reference to the container attached to this View | |
getLayout ( ) : string | Get the layout. | |
getLists ( ) : stdClass | Returns the internal list of useful variables to the benefit of header fields. | |
getName ( ) : string | Method to get the view name | |
getPagination ( ) : JPagination | Returns a reference to the pagination object of this view | |
getPerms ( ) : stdClass | Returns a reference to the permissions object of this view | |
getTask ( ) : string | Returns the task being rendered by the view | |
hasAjaxOrderingSupport ( ) : boolean | array | Determines if the current Joomla! version and your current table support AJAX-powered drag and drop reordering. |
public addCssFile ( string $uri, string $version = null, string $type = 'text/css', string $media = null, array $attribs = [] ) | ||
$uri | string | A path definition understood by parsePath, e.g. media://com_example/css/foo.css |
$version | string | (optional) Version string to be added to the URL |
$type | string | MIME type of the stylesheeet |
$media | string | Media target definition of the style sheet, e.g. "screen" |
$attribs | array | Array of attributes |
public addCssInline ( string $css, string $type = 'text/css' ) | ||
$css | string | The stylesheet content to add |
$type | string | The MIME type of the script |
public addJavascriptFile ( string $uri, string $version = null, string $type = 'text/javascript', boolean $defer = false, boolean $async = false ) | ||
$uri | string | A path definition understood by parsePath, e.g. media://com_example/js/foo.js |
$version | string | (optional) Version string to be added to the URL |
$type | string | MIME type of the script |
$defer | boolean | Adds the defer attribute, see above |
$async | boolean | Adds the async attribute, see above |
public addJavascriptInline ( string $script, string $type = 'text/javascript' ) | ||
$script | string | The script content to add |
$type | string | The MIME type of the script |
public addLess ( string $uri, string $cssUri, string $version = null, string $type = 'text/css', string $media = null, array $attribs = [] ) | ||
$uri | string | A path definition understood by parsePath pointing to the source LESS file, e.g. media://com_example/less/foo.less |
$cssUri | string | A path definition understood by parsePath pointing to a precompiled CSS file, used when we can't write the generated file to the output directory, e.g. media://com_example/css/foo.css |
$version | string | (optional) Version string to be added to the URL |
$type | string | MIME type of the stylesheeet |
$media | string | Media target definition of the style sheet, e.g. "screen" |
$attribs | array | Array of attributes |
public getContainer ( ) : |
||
Результат |
public getLists ( ) : stdClass | ||
Результат | stdClass |
public getPagination ( ) : JPagination | ||
Результат | JPagination |
public getPerms ( ) : stdClass | ||
Результат | stdClass |
public hasAjaxOrderingSupport ( ) : boolean | array | ||
Результат | boolean | array | False if not supported, otherwise a table with necessary information (saveOrder: should you enable DnD reordering; orderingColumn: which column has the ordering information). |