Tina4Stack  v1.0.1
The Tina4 Stack
Shape.php File Reference

Classes

class  htmlElement
 

Functions

 createInstance ($class, $params)
 
 getHTMLAttributes ($element)
 
 getHTMLText ($element)
 
 traverseDOM ($element)
 
 parseHTMLText ($content)
 
 parseHTMLAttributes ($attributes)
 
 arrayToShapeCode ($shapeArray, $level=0)
 
 HTMLtoShape ($content)
 
 loop ($elements, $shapeTemplate, $expressions="")
 
 a ()
 
 abbr ()
 
 acronym ()
 
 address ()
 
 applet ()
 
 area ()
 
 article ()
 
 aside ()
 
 audio ()
 
 b ()
 
 base ()
 
 basefont ()
 
 bdi ()
 
 bdo ()
 
 big ()
 
 blockquote ()
 
 body ()
 
 br ()
 
 button ()
 
 canvas ()
 
 caption ()
 
 center ()
 
 cite ()
 
 code ()
 
 col ()
 
 colgroup ()
 
 datalist ()
 
 dd ()
 
 adl ()
 
 dt ()
 
 del ()
 
 details ()
 
 dfn ()
 
 dialog ()
 
 adir ()
 
 div ()
 
 doctype ()
 
 em ()
 
 embed ()
 
 fieldset ()
 
 figcaption ()
 
 figure ()
 
 font ()
 
 footer ()
 
 form ()
 
 frame ()
 
 frameset ()
 
 head ()
 
 aheader ()
 
 hgroup ()
 
 h1 ()
 
 h2 ()
 
 h3 ()
 
 h4 ()
 
 h5 ()
 
 h6 ()
 
 hr ()
 
 html ()
 
 i ()
 
 iframe ()
 
 img ()
 
 input ()
 
 ins ()
 
 kbd ()
 
 keygen ()
 
 label ()
 
 legend ()
 
 li ()
 
 alink ()
 
 main ()
 
 map ()
 
 mark ()
 
 menu ()
 
 menuitem ()
 
 meta ()
 
 meter ()
 
 nav ()
 
 noframes ()
 
 noscript ()
 
 object ()
 
 ol ()
 
 optgroup ()
 
 option ()
 
 output ()
 
 p ()
 
 param ()
 
 pre ()
 
 progress ()
 
 q ()
 
 rp ()
 
 rt ()
 
 ruby ()
 
 s ()
 
 samp ()
 
 script ()
 
 section ()
 
 select ()
 
 shape ()
 
 small ()
 
 source ()
 
 span ()
 
 strike ()
 
 strong ()
 
 style ()
 
 sub ()
 
 summary ()
 
 sup ()
 
 table ()
 
 tbody ()
 
 td ()
 
 textarea ()
 
 tfoot ()
 
 th ()
 
 thead ()
 
 atime ()
 
 title ()
 
 tr ()
 
 track ()
 
 tt ()
 
 u ()
 
 ul ()
 
 vari ()
 
 video ()
 
 wbr ()
 
 svg ()
 
 path ()
 
 text ()
 

Function Documentation

a ( )

Anchor function The tag defines a hyperlink, which is used to link from one page to another.

Returns
htmlElement
abbr ( )

Abbr function The <abbr> tag defines an abbreviation or an acronym, like "Mr.", "Dec.", "ASAP", "ATM".

Returns
htmlElement
acronym ( )

Acronym function The <acronym> tag is not supported in HTML5. Use the <abbr> tag instead.

Returns
htmlElement
address ( )

Address function The <address> tag defines the contact information for the author/owner of a document or an article.

Returns
htmlElement
adir ( )

Dir function The <dir> tag is not supported in HTML5. Use CSS instead.

Returns
type
adl ( )

The

defines a description list.

Returns
type
aheader ( )

The <header> element represents a container for introductory content or a set of navigational links.

Returns
type
alink ( )
applet ( )

Applet function - not supported in HTML5 The <applet> tag is not supported in HTML5. Use the <object> tag instead.

Returns
htmlElement
area ( )

Area function The <area> tag defines an area inside an image-map (an image-map is an image with clickable areas). The <area> element is always nested inside a <map> tag.

Returns
htmlElement
arrayToShapeCode (   $shapeArray,
  $level = 0 
)

Make Shape code from an Array

Parameters
type$shapeArray
type$level
Returns
string
article ( )

Article function The <article> tag specifies independent, self-contained content.

Returns
htmlElement
aside ( )

Aside function The <aside> tag defines some content aside from the content it is placed in.

Returns
htmlElement
atime ( )
audio ( )

Audio function The <audio> tag defines sound, such as music or other audio streams.

Returns
htmlElement
b ( )

Bold function The tag specifies bold text.

Returns
htmlElement

base ( )

Base function Specify a default URL and a default target for all links on a page

Returns
type
basefont ( )

Basefont function The <basefont> tag is not supported in HTML5. Use CSS instead.

Returns
type
bdi ( )

BDI function The <bdi> tag isolates a part of text that might be formatted in a different direction from other text outside it.

Returns
type
bdo ( )

BDO function The <bdo> tag is used to override the current text direction.

Returns
type
big ( )

Big function The <big> tag is not supported in HTML5. Use CSS instead.

Returns
type
blockquote ( )

BlockQuote function The

tag specifies a section that is quoted from another source.

Returns
type
body ( )

Body function The <body> tag defines the document's body.

Returns
type
br ( )

Break tag Use the
tag to enter line breaks, not to separate paragraphs.

Returns
type
button ( )

Button function The <button> tag defines a clickable button.

Returns
type
canvas ( )

Canvas function The <canvas> tag is used to draw graphics, on the fly, via scripting (usually JavaScript).

Returns
type
caption ( )

Caption function The tag defines a table caption. The tag must be inserted immediately after the

Returns
type
center ( )

Center function The

tag is not supported in HTML5. Use CSS instead.

Returns
type
cite ( )

Cite function The <cite> tag defines the title of a work (e.g. a book, a song, a movie, a TV show, a painting, a sculpture, etc.).

Returns
type
code ( )

Code function The tag is a phrase tag. It defines a piece of computer code.

Returns
type

col ( )

Col function The <col> tag specifies column properties for each column within a <colgroup> element.

Returns
type
colgroup ( )

Colgroup function The <colgroup> tag specifies a group of one or more columns in a table for formatting.

Returns
type
createInstance (   $class,
  $params 
)

Create a dynamic instance of a class

Parameters
String$className of the class
String$paramsParams of the class
Returns
Class The new class
datalist ( )

Datalist function The <datalist> tag specifies a list of pre-defined options for an <input> element.

Returns
type
dd ( )
del ( )

The <del> tag defines text that has been deleted from a document.

Returns
type
details ( )
dfn ( )
dialog ( )
div ( )

Div function The

tag defines a division or a section in an HTML document.

Returns
type
doctype ( )

Doctype for beginning of html page The <!DOCTYPE> declaration must be the very first thing in your HTML document, before the <html> tag.

Returns
htmlElement
dt ( )
em ( )

The tag is a phrase tag. It renders as emphasized text.

Returns
type

embed ( )

The <embed> tag defines a container for an external application or interactive content (a plug-in).

Returns
type
fieldset ( )

The <fieldset> tag is used to group related elements in a form.

Returns
type
figcaption ( )

The <figcaption> tag defines a caption for a <figure> element.

Returns
type
figure ( )

The <figure> tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.

Returns
type
font ( )
footer ( )
form ( )
frame ( )
frameset ( )
getHTMLAttributes (   $element)
getHTMLText (   $element)
h1 ( )

The

to tags are used to define HTML headings. htmlElement

h2 ( )

The

to tags are used to define HTML headings. htmlElement

h3 ( )

The

to tags are used to define HTML headings. htmlElement

h4 ( )

The

to tags are used to define HTML headings. htmlElement

h5 ( )

The

to tags are used to define HTML headings. htmlElement

h6 ( )

The

to tags are used to define HTML headings. htmlElement

head ( )

The <head> element is a container for all the head elements.

Returns
type
hgroup ( )

The <hgroup> tag is used to group heading elements.

Returns
type
hr ( )

In HTML5, the


tag defines a thematic break.

html ( )

Html function The <html> tag tells the browser that this is an HTML document.

Returns
type
HTMLtoShape (   $content)

Convert the HTML content to Shape Code

Parameters
String$contentHTML from a website
Returns
String Shape code
i ( )

The tag defines a part of text in an alternate voice or mood.

Returns
type

iframe ( )

The <iframe> tag specifies an inline frame.

Returns
type
img ( )
input ( )
ins ( )
kbd ( )
keygen ( )
label ( )
legend ( )
li ( )
loop (   $elements,
  $shapeTemplate,
  $expressions = "" 
)

Loop to iterate through a shape template and replace content Example loop ( $names, b ("{name}"), "!empty($name),strlen($name) > 5" );

Parameters
type$elements
type$shapeTemplate
type$expression
main ( )
map ( )
mark ( )
menu ( )
menuitem ( )
meta ( )
meter ( )
nav ( )
noframes ( )
noscript ( )
Debby A valid Debby database Cody::object ( )

The database connection

ol ( )
optgroup ( )
option ( )
output ( )
p ( )
param ( )
parseHTMLAttributes (   $attributes)

Parse all the HTML Attributes

Parameters
type$attributes
Returns
string
parseHTMLText (   $content)
path ( )
pre ( )
progress ( )
q ( )
rp ( )
rt ( )
ruby ( )
s ( )
samp ( )
script ( )
section ( )
select ( )
shape ( )

Container for HTML

Returns
type
small ( )
source ( )
span ( )
strike ( )
strong ( )
style ( )
sub ( )
summary ( )
sup ( )
svg ( )
table ( )
tbody ( )
td ( )
text ( )
textarea ( )
tfoot ( )
th ( )
thead ( )
title ( )
tr ( )
track ( )
traverseDOM (   $element)
tt ( )
u ( )
ul ( )
vari ( )
video ( )
wbr ( )