namespace \webfiori\framework\ui
class WebPage
Class Attributes Summary
Class Methods Summary
Class Attributes Details
- page-body
- page-header
- main-content-area
- side-content-area
- page-footer
Class Methods Details
Parameters:
- callback $callable A PHP function that will be get executed. before the page is rendered. Note that the first argument of the function will always be an object of type "WebPage".
- array $params An array of parameters which will be passed to the callback. The parameters can be accessed in the callback in the same order at which they appear in the array.
Parameters:
- string $href The link to the file. Must be non empty string. It is possible to append query string to the end of the link.
- array $attrs An associative array of additional attributes to set for the node. One special attribute has the name 'revision'. If set to true, a query string parameter in the form '?cv=x.x' is appended to the 'href' attribute value. The 'x.x' represent application version taken from the class 'AppConfig' Default value of the attribute is true.
Parameters:
- string $src The location of the file. Must be non-empty string. It can have query string at the end.
- array $attrs An associative array of additional attributes to set for the JavaScript node. One special attribute has the name 'revision'. If set to true, a query string parameter in the form '?jv=x.x' is appended to the 'href' attribute value. The 'x.x' represent application version taken from the class 'AppConfig' Default value of the attribute is true.
Parameters:
- string $name The value of the property 'name'. Must be non empty string.
- string $content The value of the property 'content'.
- boolean $override A boolean parameter. If a meta node was found which has the given name and this attribute is set to true, the content of the meta will be overridden by the passed value.
Parameters:
- array $nodeInfo An array that holds node information.
Parameters:
- string $label A directory to the language variable (such as 'pages/login/login-label').
Parameters:
- string $id The ID of the child.
Parameters:
Parameters:
Parameters:
Parameters:
- boolean $formatted If this parameter is set to true, the rendered HTML document will be well formatted and readable. Note that by adding formatting to the page, the size of rendered HTML document will increase. The document will be compressed if this parameter is set to false. Default is false.
- boolean $returnResult If this parameter is set to true, the method will return the rendered HTML document as string. Default value is false.
Parameters:
- string $url The canonical URL of the page.
Parameters:
- string $val The description of the page. If null is given, the description meta tag will be removed from the <head> node. If empty string is given, nothing will change.
Parameters:
- boolean $bool true to include aside section. false if not.
Parameters:
- boolean $bool true to include the footer section. false if not.
Parameters:
- boolean $bool true to include the header section. false if not.
Parameters:
- string $lang a two digit language code such as AR or EN. Default value is 'EN'.
Parameters:
- string $themeNameOrClass The name of the theme as specified by the variable 'name' in theme definition. If the given name is 'null', the method will load the default theme as specified by the method 'AppConfig::getBaseThemeName()'. Note that once the theme is updated, the document content of the page will reset if it was set before calling this method. This also can be the value which can be taken from 'ClassName::class'.
Parameters:
- string $val The title of the page. If null is given, the title will not updated. Also note that if page document was created, calling this method will set the value of the <titlt> node. The format of the title is PAGE_NAME TITLE_SEP WEBSITE_NAME. for example, if the page name is 'Home' and title separator is '|' and the name of the website is 'Programming Academia'. The title of the page will be 'Home | Programming Academia'.
Parameters:
- string $str The new character or string that will be used to separate page title and web site name.
Parameters:
- string $name The name of the web site that will be appended with the title of the page.
Parameters:
- string $dir Language::DIR_LTR or Language::DIR_RTL.