Class: Page
Source Location: /myphp-1.9/myphp-1.9-page/html/component/Page.php
Class Page
Inherited Properties, Constants, and Methods
Method Summary
| String |
getHtml() |
Returns the content html for the page |
| void |
image() |
Display image |
| void |
start() |
Display start |
| void |
title() |
Display title |
Methods
void banner(
[String
$width = ''], [mixed
$link = ''], [mixed
$imagelink = ''], String
$link_id, String
$imagelink_id
)
|
|
Display banner
Parameters:
|
String |
$width: |
The width of the table |
|
String |
$link_id: |
The link object to use |
|
String |
$imagelink_id: |
The imagelink object to use |
API Tags:
void bannerif(
[String
$width = '']
)
|
|
Display bannerif
Parameters:
|
String |
$width: |
The width of the table |
API Tags:
Display bodyend
API Tags:
Display bodystart
API Tags:
void bottommenu(
[String
$links = ''], [String
$text = ''], [String
$width = ''], [String
$class = '']
)
|
|
Display bottommenu
Parameters:
|
String |
$links: |
An array of links |
|
String |
$text: |
The text above the menu links |
|
String |
$width: |
The width of the menu |
|
String |
$class: |
The css class for the menu |
API Tags:
void comment(
[String
$text = '']
)
|
|
Display comment
Parameters:
|
String |
$text: |
The text to add as comment |
API Tags:
void company(
[String
$text = ''], [String
$width = ''], [mixed
$class = ''], [mixed
$border = ''], [mixed
$cellPadding = ''], [mixed
$cellSpacing = '']
)
|
|
Display company
Parameters:
|
String |
$text: |
The text of the table |
|
String |
$width: |
The width of the table, default 100% |
API Tags:
void copyright(
[String
$width = '']
)
|
|
Display copyright
Parameters:
|
String |
$width: |
The width of the table, default 100% |
API Tags:
void css(
[String
$href = '']
)
|
|
Display css
Parameters:
|
String |
$href: |
The url to the css file (i.e. /css/my.css) |
API Tags:
void customer(
[String
$text = ''], [String
$width = ''], [mixed
$class = ''], [mixed
$border = ''], [mixed
$cellPadding = ''], [mixed
$cellSpacing = '']
)
|
|
Display customer
Parameters:
|
String |
$text: |
The text of the table |
|
String |
$width: |
The width of the table, default 100% |
API Tags:
void doctype(
[String
$doctype = '']
)
|
|
Display doctype
Parameters:
|
String |
$doctype: |
The doctype to use |
API Tags:
void end(
[mixed
$element = '']
)
|
|
Display end
- Usage:
- Page::end(); // Generates an end of PAGE
- Page::end('ul'); // Generates an end </ul>
- Page::end('p');
API Tags:
void footer(
[String
$width = '']
)
|
|
Display footer
Parameters:
|
String |
$width: |
The width of the table, default 100% |
API Tags:
Returns the content html for the page
API Tags:
| Return: | the complete html |
Redefinition of:
- Html::getHtml()
- Get Html
void google(
[mixed
$text = ''], String
$tex,
)
|
|
Display google
Parameters:
|
String |
$tex,: |
The default search pattern |
API Tags:
Display googleend
API Tags:
Display googlestart
API Tags:
void h1(
String
$text, [String
$class = ''], [String
$name = '']
)
|
|
Display h1
- Usage:
- Page::h1($text,$class,$name);
Parameters:
|
String |
$text: |
The text to show with <h1>$text</h1> |
|
String |
$class: |
The css class name |
|
String |
$name: |
The name/id attribute for a link identifier |
API Tags:
void h2(
mixed
$text, [mixed
$class = ''], [mixed
$name = '']
)
|
|
void h3(
mixed
$text, [mixed
$class = ''], [mixed
$name = '']
)
|
|
void h4(
mixed
$text, [mixed
$class = ''], [mixed
$name = '']
)
|
|
void h5(
mixed
$text, [mixed
$class = ''], [mixed
$name = '']
)
|
|
void h6(
mixed
$text, [mixed
$class = ''], [mixed
$name = '']
)
|
|
Display headstart
API Tags:
void hr(
[String
$class = '']
)
|
|
Display hr
Parameters:
|
String |
$class: |
The css class name |
API Tags:
void iframe(
[mixed
$src = ''], String
$srct
)
|
|
Display iframe
Parameters:
|
String |
$srct: |
The source path for the html to iframe |
API Tags:
void image(
[mixed
$src = ''], [String
$width = ''], [String
$height = ''], [String
$alt = ''], [String
$class = ''], [String
$border = ''], String
$srct
)
|
|
Display image
- Usage:
- Page::image($src,$width,$height,$alt,$class,$border);
- will insert an image here
Parameters:
|
String |
$srct: |
The source path for the image |
|
String |
$width: |
The width |
|
String |
$height: |
The height |
|
String |
$alt: |
The alt text |
|
String |
$class: |
The css class for the image |
|
String |
$border: |
The border of an image |
API Tags:
void imagelink(
[String
$image = ''], [String
$link = '']
)
|
|
Display imagelink
Parameters:
|
String |
$image: |
The image object to show |
|
String |
$link: |
The link object to go to |
API Tags:
void imagerotator(
[String
$path = '']
)
|
|
Display imagerotator
Parameters:
|
String |
$path: |
The path to the images to rotate |
API Tags:
void javascript(
[String
$href = '']
)
|
|
Display javascript
Parameters:
|
String |
$href: |
The url to the Javascript file (i.e. /include/my.js) |
API Tags:
void leftmenu(
[String
$links = ''], [String
$text = ''], [String
$width = ''], [String
$class = '']
)
|
|
Display leftmenu
Parameters:
|
String |
$links: |
an array of links |
|
String |
$text: |
The text above the menu links |
|
String |
$width: |
The width of the menu |
|
String |
$class: |
The css class for the menu |
API Tags:
void li(
String
$text, [String
$class = '']
)
|
|
Display li
- Usage:
- Page::li($text,$class);
Parameters:
|
String |
$text: |
The text to show with <li>$text</li> |
|
String |
$class: |
The css class name |
API Tags:
void line(
[String
$width = ''], [String
$height = ''], [String
$class = ''], [String
$border = ''], [String
$cellPadding = ''], [String
$cellSpacing = '']
)
|
|
Display line
- Usage:
- Page::line($width,$height,$class);
Parameters:
|
String |
$width: |
The width of the table |
|
String |
$height: |
The height of the line |
|
String |
$class: |
The css class to use |
|
String |
$border: |
The table border |
|
String |
$cellPadding: |
|
|
String |
$cellSpacing: |
|
API Tags:
void link(
[String
$text = ''], [String
$href = ''], [String
$class = ''], [String
$title = ''], [String
$aux = '']
)
|
|
Display link
- Usage:
- Page::link($text,$href,$class,$title,$aux);
Parameters:
|
String |
$text: |
The text for the link |
|
String |
$href: |
The url for the link |
|
String |
$class: |
The css class of the link |
|
String |
$title: |
The tool tip of the link |
|
String |
$aux: |
Add 'br' or 'li' html Pages, if required |
API Tags:
void locator(
[String
$width = ''], [String
$class = '']
)
|
|
Display locator
Parameters:
|
String |
$width: |
The width of the table |
|
String |
$class: |
The css class of the table |
API Tags:
void mailto(
[String
$text = ''], [String
$href = ''], [String
$class = ''], [String
$title = ''], [String
$aux = '']
)
|
|
Display mailto
- Usage:
- Page::mailto($text,$href,$class,$title,$aux);
Parameters:
|
String |
$text: |
The text for the link |
|
String |
$href: |
The url for the link |
|
String |
$class: |
The css class of the link |
|
String |
$title: |
The tool tip of the link |
|
String |
$aux: |
Add 'br' or 'li' html Pages, if required |
API Tags:
void menulink(
[String
$path = '']
)
|
|
Display menulink
Parameters:
|
String |
$path: |
The directory path to start from |
API Tags:
void meta(
[String
$title = ''], [String
$description = ''], [String
$keyword = ''], [String
$keywords = '']
)
|
|
Display meta
- Usage:
- Page::meta('the title','the description','the keyword','keyword1,keyword2,...');
Parameters:
|
String |
$title: |
The title of the page |
|
String |
$description: |
The description of the page |
|
String |
$keyword: |
The unique keyword for this page |
|
String |
$keywords: |
The keywords for the page |
API Tags:
void metarotator(
[String
$group = ''], [String
$keyword = ''], [String
$file = '']
)
|
|
Display metarotator
Parameters:
|
String |
$group: |
The Meta group to use |
|
String |
$keyword: |
The Meta keyword to use |
|
String |
$file: |
The Meta file to use |
API Tags:
Display noscript
API Tags:
void p(
String
$text, [String
$class = '']
)
|
|
Display p
- Usage:
- Page::p($text,$class);
Parameters:
|
String |
$text: |
The text to show with <p>$text</p> |
|
String |
$class: |
The css class name |
API Tags:
void rightmenu(
[String
$links = ''], [String
$text = ''], [String
$width = ''], [String
$class = '']
)
|
|
Display rightmenu
Parameters:
|
String |
$links: |
an array of links |
|
String |
$text: |
The text above the menu links |
|
String |
$width: |
The width of the menu |
|
String |
$class: |
The css class for the menu |
API Tags:
void shortcuticon(
[String
$href = '']
)
|
|
Display shortcuticon
Parameters:
|
String |
$href: |
The url to the Shortcut Icon |
API Tags:
void start(
String
$element, [String
$class = '']
)
|
|
Display start
Parameters:
|
String |
$element: |
The html element, Valid elements: p,br,h1..h6,li,b,pre |
|
String |
$class: |
The css class name |
API Tags:
void text(
[String
$text = ''], [String
$element = ''], [String
$class = '']
)
|
|
Display text
|
|