TNotebook
extends TElement
in package
Notebook
Tags
Table of Contents
Properties
- $children : mixed
- $afterElement : mixed
- $container : mixed
- $counter : mixed
- $currentPage : mixed
- $height : mixed
- $hidden : mixed
- $id : mixed
- $isVoidElement : mixed
- $noteCounter : mixed
- $pages : mixed
- $properties : mixed
- $tabAction : mixed
- $tabsSensibility : mixed
- $tabsVisibility : mixed
- $tagname : mixed
- $useLineBreaks : mixed
- $useSingleQuotes : mixed
- $voidelements : mixed
- $width : mixed
- $wrapped : mixed
Methods
- __clone() : mixed
- Clone the object
- __construct() : mixed
- Class Constructor
- __get() : mixed
- Returns a property's value
- __isset() : mixed
- Returns is a property's is set
- __set() : mixed
- Intercepts whenever someones assign a new property's value
- __toString() : mixed
- Converts the object into a string
- __unset() : mixed
- Intercepts whenever someones unset a property's value
- add() : mixed
- Add an child element
- addMany() : mixed
- Add many children
- after() : mixed
- Insert element after
- appendPage() : mixed
- Add a tab to the notebook
- clearChildren() : mixed
- Clear element children
- close() : mixed
- BC only
- closeTag() : mixed
- Closes the tag
- del() : mixed
- Del an child element
- enableVoidElement() : mixed
- Turn element into a void element
- find() : mixed
- Find child element
- get() : mixed
- Get an child element
- getAfterElement() : mixed
- Return the after element
- getChildren() : mixed
- get children
- getContents() : mixed
- Returns the element content as a string
- getCurrentPage() : mixed
- Returns the current page
- getId() : mixed
- Returns the element ID
- getIsWrapped() : mixed
- Return if the element is wrapped inside another one
- getName() : mixed
- Returns tag name
- getPageCount() : mixed
- Return the Page count
- getProperties() : mixed
- Return element properties
- getProperty() : mixed
- Return a property
- getSize() : mixed
- Returns the frame size
- hide() : mixed
- hide object
- insert() : mixed
- Insert an child element
- open() : mixed
- BC only
- openTag() : mixed
- Opens the tag
- render() : mixed
- Render the notebook
- setCurrentPage() : mixed
- Define the current page to be shown
- setIsWrapped() : mixed
- Define if the element is wrapped inside another one
- setName() : mixed
- Change the element name
- setProperties() : mixed
- Set element properties
- setProperty() : mixed
- Set tag property
- setSize() : mixed
- Set the notebook size
- setTabAction() : mixed
- Define the action for the Notebook tab
- setTabsSensibility() : mixed
- Define the tabs click sensibility
- setTabsVisibility() : mixed
- Define if the tabs will be visible or not
- setUseLineBreaks() : mixed
- Set the use of linebreaks
- setUseSingleQuotes() : mixed
- Set the use of single quotes
- show() : mixed
- Show the notebook
- tag() : mixed
- Create an element
Properties
$children
protected
mixed
$children
$afterElement
private
mixed
$afterElement
$container
private
mixed
$container
$counter
private
mixed
$counter
$currentPage
private
mixed
$currentPage
$height
private
mixed
$height
$hidden
private
mixed
$hidden
$id
private
mixed
$id
$isVoidElement
private
mixed
$isVoidElement
$noteCounter
private
static mixed
$noteCounter
$pages
private
mixed
$pages
$properties
private
mixed
$properties
$tabAction
private
mixed
$tabAction
$tabsSensibility
private
mixed
$tabsSensibility
$tabsVisibility
private
mixed
$tabsVisibility
$tagname
private
mixed
$tagname
$useLineBreaks
private
mixed
$useLineBreaks
$useSingleQuotes
private
mixed
$useSingleQuotes
$voidelements
private
static mixed
$voidelements
$width
private
mixed
$width
$wrapped
private
mixed
$wrapped
Methods
__clone()
Clone the object
public
__clone() : mixed
__construct()
Class Constructor
public
__construct([mixed $width = null ][, mixed $height = null ]) : mixed
Parameters
- $width : mixed = null
-
Notebook's width
- $height : mixed = null
-
Notebook's height
__get()
Returns a property's value
public
__get(mixed $name) : mixed
Parameters
- $name : mixed
-
Property Name
__isset()
Returns is a property's is set
public
__isset(mixed $name) : mixed
Parameters
- $name : mixed
-
Property Name
__set()
Intercepts whenever someones assign a new property's value
public
__set(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
-
Property Name
- $value : mixed
-
Property Value
__toString()
Converts the object into a string
public
__toString() : mixed
__unset()
Intercepts whenever someones unset a property's value
public
__unset(mixed $name) : mixed
Parameters
- $name : mixed
-
Property Name
add()
Add an child element
public
add(mixed $child) : mixed
Parameters
- $child : mixed
-
Any object that implements the show() method
addMany()
Add many children
public
addMany(mixed $children) : mixed
Parameters
- $children : mixed
-
Array of child
after()
Insert element after
public
after(mixed $element) : mixed
Parameters
- $element : mixed
appendPage()
Add a tab to the notebook
public
appendPage(mixed $title, mixed $object) : mixed
Parameters
- $title : mixed
-
tab's title
- $object : mixed
-
tab's content
clearChildren()
Clear element children
public
clearChildren() : mixed
close()
BC only
public
close() : mixed
closeTag()
Closes the tag
public
closeTag() : mixed
del()
Del an child element
public
del(mixed $object) : mixed
Parameters
- $object : mixed
enableVoidElement()
Turn element into a void element
public
enableVoidElement() : mixed
find()
Find child element
public
find(mixed $element[, mixed $properties = null ]) : mixed
Parameters
- $element : mixed
-
tag name
- $properties : mixed = null
-
match properties
get()
Get an child element
public
get(mixed $position) : mixed
Parameters
- $position : mixed
-
Element position
getAfterElement()
Return the after element
public
getAfterElement() : mixed
getChildren()
get children
public
getChildren() : mixed
getContents()
Returns the element content as a string
public
getContents() : mixed
getCurrentPage()
Returns the current page
public
getCurrentPage() : mixed
getId()
Returns the element ID
public
getId() : mixed
getIsWrapped()
Return if the element is wrapped inside another one
public
getIsWrapped() : mixed
getName()
Returns tag name
public
getName() : mixed
getPageCount()
Return the Page count
public
getPageCount() : mixed
getProperties()
Return element properties
public
getProperties() : mixed
getProperty()
Return a property
public
getProperty(mixed $name) : mixed
Parameters
- $name : mixed
-
property name
getSize()
Returns the frame size
public
getSize() : mixed
Tags
hide()
hide object
public
hide() : mixed
insert()
Insert an child element
public
insert(mixed $position, mixed $child) : mixed
Parameters
- $position : mixed
-
Element position
- $child : mixed
-
Any object that implements the show() method
open()
BC only
public
open() : mixed
openTag()
Opens the tag
public
openTag() : mixed
render()
Render the notebook
public
render() : mixed
setCurrentPage()
Define the current page to be shown
public
setCurrentPage(mixed $i) : mixed
Parameters
- $i : mixed
-
An integer representing the page number (start at 0)
setIsWrapped()
Define if the element is wrapped inside another one
public
setIsWrapped(mixed $bool) : mixed
Parameters
- $bool : mixed
setName()
Change the element name
public
setName(mixed $tagname) : mixed
Parameters
- $tagname : mixed
-
Element name
setProperties()
Set element properties
public
setProperties(mixed $properties) : mixed
Parameters
- $properties : mixed
setProperty()
Set tag property
public
setProperty(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
-
Property Name
- $value : mixed
-
Property Value
setSize()
Set the notebook size
public
setSize(mixed $width, mixed $height) : mixed
Parameters
- $width : mixed
-
Notebook's width
- $height : mixed
-
Notebook's height
setTabAction()
Define the action for the Notebook tab
public
setTabAction(mixed $action) : mixed
Parameters
- $action : mixed
-
Action taken when the user clicks over Notebook tab (A TAction object)
setTabsSensibility()
Define the tabs click sensibility
public
setTabsSensibility(mixed $sensibility) : mixed
Parameters
- $sensibility : mixed
-
If the tabs will be sensible to click
setTabsVisibility()
Define if the tabs will be visible or not
public
setTabsVisibility(mixed $visible) : mixed
Parameters
- $visible : mixed
-
If the tabs will be visible
setUseLineBreaks()
Set the use of linebreaks
public
setUseLineBreaks(mixed $linebreaks) : mixed
Parameters
- $linebreaks : mixed
-
boolean
setUseSingleQuotes()
Set the use of single quotes
public
setUseSingleQuotes(mixed $singlequotes) : mixed
Parameters
- $singlequotes : mixed
-
boolean
show()
Show the notebook
public
show() : mixed
tag()
Create an element
public
static tag(mixed $tagname, mixed $value[, mixed $attributes = NULL ]) : mixed
Parameters
- $tagname : mixed
-
Element name
- $value : mixed
-
Element value
- $attributes : mixed = NULL
-
Element attributes