PHP 인터페이스 FOF30\View\DataView\DataViewInterface

파일 보기 프로젝트 열기: akeeba/fof

공개 메소드들

메소드 설명
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 ( ) : Container 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.

메소드 상세

addCssFile() 공개 메소드

Add a CSS file to the page generated by the CMS
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

addCssInline() 공개 메소드

Adds an inline stylesheet (inline CSS) to the page header
public addCssInline ( string $css, string $type = 'text/css' )
$css string The stylesheet content to add
$type string The MIME type of the script

addJavascriptFile() 공개 메소드

There are three combinations of defer and async (see http://www.w3schools.com/tags/att_script_defer.asp): * $defer false, $async true: The script is executed asynchronously with the rest of the page (the script will be executed while the page continues the parsing) * $defer true, $async false: The script is executed when the page has finished parsing. * $defer false, $async false. (default) The script is loaded and executed immediately. When it finishes loading the browser continues parsing the rest of the page. When you are using $defer = true there is no guarantee about the load order of the scripts. Whichever script loads first will be executed first. The order they appear on the page is completely irrelevant.
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

addJavascriptInline() 공개 메소드

Adds an inline JavaScript script to the page header
public addJavascriptInline ( string $script, string $type = 'text/javascript' )
$script string The script content to add
$type string The MIME type of the script

addLess() 공개 메소드

This method has integrated cache support. The compiled LESS files will be written to the media/lib_fof/compiled directory of your site. If the file cannot be written we will use the $cssUri, if specified
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

escape() 공개 메소드

Escapes a value for output in a view script.
public escape ( mixed $var ) : string
$var mixed The output to escape.
리턴 string The escaped value.

getContainer() 공개 메소드

Returns a reference to the container attached to this View
public getContainer ( ) : Container
리턴 FOF30\Container\Container

getLayout() 공개 메소드

Get the layout.
public getLayout ( ) : string
리턴 string The layout name

getLists() 공개 메소드

Returns the internal list of useful variables to the benefit of header fields.
public getLists ( ) : stdClass
리턴 stdClass

getName() 공개 메소드

The model name by default parsed using the classname, or it can be set by passing a $config['name'] in the class constructor
public getName ( ) : string
리턴 string The name of the model

getPagination() 공개 메소드

Returns a reference to the pagination object of this view
public getPagination ( ) : JPagination
리턴 JPagination

getPerms() 공개 메소드

Returns a reference to the permissions object of this view
public getPerms ( ) : stdClass
리턴 stdClass

getTask() 공개 메소드

Returns the task being rendered by the view
public getTask ( ) : string
리턴 string

hasAjaxOrderingSupport() 공개 메소드

If they do, it will set up the drag & drop reordering feature.
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).