Fixed the version number in docs.

This commit is contained in:
Matt Moore 2013-10-12 22:06:36 -04:00
parent df40b379b5
commit 9878391de0
17 changed files with 135 additions and 135 deletions

View File

@ -7,4 +7,4 @@ docs.description=Create dynamic, valid HTML5 markup with a simple an intuitive P
docs.logo= docs.logo=
docs.themedir=../CanteenTheme docs.themedir=../CanteenTheme
docs.helpers=${docs.themedir}/path.js docs.helpers=${docs.themedir}/path.js
docs.version=1.0.0 version=1.0.0

View File

@ -8,7 +8,7 @@
<copy file="${docs.config}" tofile="temp.json" overwrite="true" /> <copy file="${docs.config}" tofile="temp.json" overwrite="true" />
<replaceregexp file="temp.json" match="\$\{docs\.description\}" replace="${docs.description}" flags="g" /> <replaceregexp file="temp.json" match="\$\{docs\.description\}" replace="${docs.description}" flags="g" />
<replaceregexp file="temp.json" match="\$\{docs\.name\}" replace="${docs.name}" flags="g" /> <replaceregexp file="temp.json" match="\$\{docs\.name\}" replace="${docs.name}" flags="g" />
<replaceregexp file="temp.json" match="\$\{docs\.version\}" replace="${docs.version}" flags="g" /> <replaceregexp file="temp.json" match="\$\{version\}" replace="${version}" flags="g" />
<replaceregexp file="temp.json" match="\$\{docs\.outdir\}" replace="${docs.outdir}" flags="g" /> <replaceregexp file="temp.json" match="\$\{docs\.outdir\}" replace="${docs.outdir}" flags="g" />
<replaceregexp file="temp.json" match="\$\{docs\.logo\}" replace="${docs.logo}" flags="g" /> <replaceregexp file="temp.json" match="\$\{docs\.logo\}" replace="${docs.logo}" flags="g" />
<replaceregexp file="temp.json" match="\$\{docs\.helpers\}" replace="${docs.helpers}" flags="g" /> <replaceregexp file="temp.json" match="\$\{docs\.helpers\}" replace="${docs.helpers}" flags="g" />

View File

@ -1,5 +1,5 @@
{ {
"name": "Canteen/HTML5", "name": "canteen/html5",
"description" : "Create dynamic, valid HTML5 markup with a simple an intuitive PHP API", "description" : "Create dynamic, valid HTML5 markup with a simple an intuitive PHP API",
"version" : "1.0.0", "version" : "1.0.0",
"type": "library", "type": "library",

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : Attribute</title> <title>Canteen HTML5 API v1.0.0 API Documentation : Attribute</title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : Comment</title> <title>Canteen HTML5 API v1.0.0 API Documentation : Comment</title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : Document</title> <title>Canteen HTML5 API v1.0.0 API Documentation : Document</title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : HTML5Error</title> <title>Canteen HTML5 API v1.0.0 API Documentation : HTML5Error</title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : Node</title> <title>Canteen HTML5 API v1.0.0 API Documentation : Node</title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : NodeContainer</title> <title>Canteen HTML5 API v1.0.0 API Documentation : NodeContainer</title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : SimpleList</title> <title>Canteen HTML5 API v1.0.0 API Documentation : SimpleList</title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : Table</title> <title>Canteen HTML5 API v1.0.0 API Documentation : Table</title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : Text</title> <title>Canteen HTML5 API v1.0.0 API Documentation : Text</title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : html</title> <title>Canteen HTML5 API v1.0.0 API Documentation : html</title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">
@ -123,7 +123,7 @@
<p>This is the global function is the main entry for interacting with the HTML5 for PHP library. <p>This is the global function is the main entry for interacting with the HTML5 for PHP library.
using <code>html()</code> global function you can create HTML5 quickly and easily. For more using <code>html()</code> global function you can create HTML5 quickly and easily. For more
examples and instruction on how to use this library, please refer to the the examples and instruction on how to use this library, please refer to the the
<a href="https://github.com/bigtimebuddy/CanteenHTML5">GitHub project</a>. <a href="https://github.com/Canteen/CanteenHTML5">GitHub project</a>.
To install the library simply include <code>html.php</code>, this takes care of any autoloading that&#39;s needed To install the library simply include <code>html.php</code>, this takes care of any autoloading that&#39;s needed
for the rest of the library.</p> for the rest of the library.</p>
<pre class="code prettyprint"><code>echo html(&#39;img src=home.jpg&#39;); <pre class="code prettyprint"><code>echo html(&#39;img src=home.jpg&#39;);

View File

@ -2,12 +2,12 @@
"project": { "project": {
"name": "Canteen HTML5 API", "name": "Canteen HTML5 API",
"description": "Create dynamic, valid HTML5 markup with a simple an intuitive PHP API", "description": "Create dynamic, valid HTML5 markup with a simple an intuitive PHP API",
"version": "${version}", "version": "1.0.0",
"logo": "" "logo": ""
}, },
"files": { "files": {
"src/Canteen/HTML5/Attribute.php": { "src/Attribute.php": {
"name": "src/Canteen/HTML5/Attribute.php", "name": "src/Attribute.php",
"modules": { "modules": {
"Canteen\\HTML5": 1 "Canteen\\HTML5": 1
}, },
@ -17,8 +17,8 @@
"fors": {}, "fors": {},
"namespaces": {} "namespaces": {}
}, },
"src/Canteen/HTML5/Comment.php": { "src/Comment.php": {
"name": "src/Canteen/HTML5/Comment.php", "name": "src/Comment.php",
"modules": {}, "modules": {},
"classes": { "classes": {
"Comment": 1 "Comment": 1
@ -26,8 +26,8 @@
"fors": {}, "fors": {},
"namespaces": {} "namespaces": {}
}, },
"src/Canteen/HTML5/Document.php": { "src/Document.php": {
"name": "src/Canteen/HTML5/Document.php", "name": "src/Document.php",
"modules": {}, "modules": {},
"classes": { "classes": {
"Document": 1 "Document": 1
@ -35,8 +35,8 @@
"fors": {}, "fors": {},
"namespaces": {} "namespaces": {}
}, },
"src/Canteen/HTML5/HTML5Error.php": { "src/HTML5Error.php": {
"name": "src/Canteen/HTML5/HTML5Error.php", "name": "src/HTML5Error.php",
"modules": {}, "modules": {},
"classes": { "classes": {
"HTML5Error": 1 "HTML5Error": 1
@ -44,8 +44,8 @@
"fors": {}, "fors": {},
"namespaces": {} "namespaces": {}
}, },
"src/Canteen/HTML5/Node.php": { "src/Node.php": {
"name": "src/Canteen/HTML5/Node.php", "name": "src/Node.php",
"modules": {}, "modules": {},
"classes": { "classes": {
"Node": 1 "Node": 1
@ -53,8 +53,8 @@
"fors": {}, "fors": {},
"namespaces": {} "namespaces": {}
}, },
"src/Canteen/HTML5/NodeContainer.php": { "src/NodeContainer.php": {
"name": "src/Canteen/HTML5/NodeContainer.php", "name": "src/NodeContainer.php",
"modules": {}, "modules": {},
"classes": { "classes": {
"NodeContainer": 1 "NodeContainer": 1
@ -62,8 +62,8 @@
"fors": {}, "fors": {},
"namespaces": {} "namespaces": {}
}, },
"src/Canteen/HTML5/SimpleList.php": { "src/SimpleList.php": {
"name": "src/Canteen/HTML5/SimpleList.php", "name": "src/SimpleList.php",
"modules": {}, "modules": {},
"classes": { "classes": {
"SimpleList": 1 "SimpleList": 1
@ -71,8 +71,8 @@
"fors": {}, "fors": {},
"namespaces": {} "namespaces": {}
}, },
"src/Canteen/HTML5/Table.php": { "src/Table.php": {
"name": "src/Canteen/HTML5/Table.php", "name": "src/Table.php",
"modules": {}, "modules": {},
"classes": { "classes": {
"Table": 1 "Table": 1
@ -80,8 +80,8 @@
"fors": {}, "fors": {},
"namespaces": {} "namespaces": {}
}, },
"src/Canteen/HTML5/Text.php": { "src/Text.php": {
"name": "src/Canteen/HTML5/Text.php", "name": "src/Text.php",
"modules": {}, "modules": {},
"classes": { "classes": {
"Text": 1 "Text": 1
@ -89,8 +89,8 @@
"fors": {}, "fors": {},
"namespaces": {} "namespaces": {}
}, },
"src/Canteen/HTML5/html.php": { "src/html.php": {
"name": "src/Canteen/HTML5/html.php", "name": "src/html.php",
"modules": { "modules": {
"global": 1 "global": 1
}, },
@ -119,7 +119,7 @@
"fors": {}, "fors": {},
"namespaces": {}, "namespaces": {},
"tag": "module", "tag": "module",
"file": "src/Canteen/HTML5/Text.php", "file": "src/Text.php",
"line": 8 "line": 8
}, },
"global": { "global": {
@ -131,7 +131,7 @@
"fors": {}, "fors": {},
"namespaces": {}, "namespaces": {},
"tag": "module", "tag": "module",
"file": "src/Canteen/HTML5/html.php", "file": "src/html.php",
"line": 32 "line": 32
} }
}, },
@ -146,7 +146,7 @@
"extension_for": [], "extension_for": [],
"module": "Canteen\\HTML5", "module": "Canteen\\HTML5",
"namespace": "", "namespace": "",
"file": "src/Canteen/HTML5/Attribute.php", "file": "src/Attribute.php",
"line": 8, "line": 8,
"description": "An HTML attribute used on the Node, this is used internally.\nDo not initiate this class directly, use the `html()` function\nto create attributes on elements.\n\n\techo html('a', 'Link', 'class=button href=\"about.html\"');\n\t\n\techo html('a', 'Link')\n\t\t->setAttribute('class', 'button')\n\t\t->setAttribute('href', 'about.html');", "description": "An HTML attribute used on the Node, this is used internally.\nDo not initiate this class directly, use the `html()` function\nto create attributes on elements.\n\n\techo html('a', 'Link', 'class=button href=\"about.html\"');\n\t\n\techo html('a', 'Link')\n\t\t->setAttribute('class', 'button')\n\t\t->setAttribute('href', 'about.html');",
"is_constructor": 1, "is_constructor": 1,
@ -177,7 +177,7 @@
"extension_for": [], "extension_for": [],
"module": "Canteen\\HTML5", "module": "Canteen\\HTML5",
"namespace": "", "namespace": "",
"file": "src/Canteen/HTML5/Comment.php", "file": "src/Comment.php",
"line": 8, "line": 8,
"description": "Special node type representing an HTML5 inline comment.\nDo not initiate this class directly, use the `html('comment')` function:\n\n\techo html('comment', 'Hidden HTML comment here');", "description": "Special node type representing an HTML5 inline comment.\nDo not initiate this class directly, use the `html('comment')` function:\n\n\techo html('comment', 'Hidden HTML comment here');",
"extends": "NodeContainer", "extends": "NodeContainer",
@ -200,7 +200,7 @@
"extension_for": [], "extension_for": [],
"module": "Canteen\\HTML5", "module": "Canteen\\HTML5",
"namespace": "", "namespace": "",
"file": "src/Canteen/HTML5/Document.php", "file": "src/Document.php",
"line": 8, "line": 8,
"description": "Create an HTML document. Basic barebones structure. \nLocated in the namespace __Canteen\\HTML5__.\n\n\t$doc = new HTML5\\Document('Untitled');\n\t$doc->head->addChild(html('script src=main.js'));\n\t$doc->body->addChild(html('div#frame'));\n\techo $doc;", "description": "Create an HTML document. Basic barebones structure. \nLocated in the namespace __Canteen\\HTML5__.\n\n\t$doc = new HTML5\\Document('Untitled');\n\t$doc->head->addChild(html('script src=main.js'));\n\t$doc->body->addChild(html('div#frame'));\n\techo $doc;",
"extends": "NodeContainer", "extends": "NodeContainer",
@ -239,7 +239,7 @@
"extension_for": [], "extension_for": [],
"module": "Canteen\\HTML5", "module": "Canteen\\HTML5",
"namespace": "", "namespace": "",
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 8, "line": 8,
"description": "Exceptions with using the HTML5 API.\n\n\ttry\n\t{\n\t\thtml('invalid', 'something');\n\t}\n\tcatch(Canteen\\HTML5\\HTML5Error $e)\n\t{\n\t\t$e->getMessage();\n\t}", "description": "Exceptions with using the HTML5 API.\n\n\ttry\n\t{\n\t\thtml('invalid', 'something');\n\t}\n\tcatch(Canteen\\HTML5\\HTML5Error $e)\n\t{\n\t\t$e->getMessage();\n\t}",
"extends": "Exception", "extends": "Exception",
@ -269,7 +269,7 @@
"extension_for": [], "extension_for": [],
"module": "Canteen\\HTML5", "module": "Canteen\\HTML5",
"namespace": "", "namespace": "",
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 8, "line": 8,
"description": "A generic html tag with any children or closing tag. (e.g., img, br, hr).\nDo not initiate this class directly, use the `html()` function:\n\n\techo html('br');", "description": "A generic html tag with any children or closing tag. (e.g., img, br, hr).\nDo not initiate this class directly, use the `html()` function:\n\n\techo html('br');",
"is_constructor": 1, "is_constructor": 1,
@ -307,7 +307,7 @@
"extension_for": [], "extension_for": [],
"module": "Canteen\\HTML5", "module": "Canteen\\HTML5",
"namespace": "", "namespace": "",
"file": "src/Canteen/HTML5/NodeContainer.php", "file": "src/NodeContainer.php",
"line": 8, "line": 8,
"description": "Represents an HTML that that can contain other tags (e.g., br, p, div).\nDo not initiate this class directly, use the `html()` function:\n\n\t$div = html('div');", "description": "Represents an HTML that that can contain other tags (e.g., br, p, div).\nDo not initiate this class directly, use the `html()` function:\n\n\t$div = html('div');",
"extends": "Node", "extends": "Node",
@ -353,7 +353,7 @@
"extension_for": [], "extension_for": [],
"module": "Canteen\\HTML5", "module": "Canteen\\HTML5",
"namespace": "", "namespace": "",
"file": "src/Canteen/HTML5/SimpleList.php", "file": "src/SimpleList.php",
"line": 8, "line": 8,
"description": "Convenience class for creating an ordered or un-ordered list.\n\n\t$list = new Canteen\\HTML5\\SimpleList(\n\t\tarray(\n\t\t\thtml('b', 'first'),\n\t\t\t'second', \n\t\t\t'third',\n\t\t\tarray(\n\t\t\t\t'sub-third',\n\t\t\t\t'sub-forth'\n\t\t\t)\n\t\t)\n\t);", "description": "Convenience class for creating an ordered or un-ordered list.\n\n\t$list = new Canteen\\HTML5\\SimpleList(\n\t\tarray(\n\t\t\thtml('b', 'first'),\n\t\t\t'second', \n\t\t\t'third',\n\t\t\tarray(\n\t\t\t\t'sub-third',\n\t\t\t\t'sub-forth'\n\t\t\t)\n\t\t)\n\t);",
"extends": "NodeContainer", "extends": "NodeContainer",
@ -392,7 +392,7 @@
"extension_for": [], "extension_for": [],
"module": "Canteen\\HTML5", "module": "Canteen\\HTML5",
"namespace": "", "namespace": "",
"file": "src/Canteen/HTML5/Table.php", "file": "src/Table.php",
"line": 8, "line": 8,
"description": "Convenience class for building a Table. Useful for display\nrows of data from a database or another collection\nof associative arrays.\n\t\n\t$table = new Canteen\\HTML5\\Table(\n\t\tarray(\n\t\t\tarray('id'=>1, 'first'=>'James', 'last'=>'Smith'),\n\t\t\tarray('id'=>2, 'first'=>'Mary', 'last'=>'Denver'),\n\t\t\tarray('id'=>3, 'first'=>'Charlie', 'last'=>'Rose')\n\t\t),\n\t\tarray('ID', 'First Name', 'Last Name')\n\t);", "description": "Convenience class for building a Table. Useful for display\nrows of data from a database or another collection\nof associative arrays.\n\t\n\t$table = new Canteen\\HTML5\\Table(\n\t\tarray(\n\t\t\tarray('id'=>1, 'first'=>'James', 'last'=>'Smith'),\n\t\t\tarray('id'=>2, 'first'=>'Mary', 'last'=>'Denver'),\n\t\t\tarray('id'=>3, 'first'=>'Charlie', 'last'=>'Rose')\n\t\t),\n\t\tarray('ID', 'First Name', 'Last Name')\n\t);",
"extends": "NodeContainer", "extends": "NodeContainer",
@ -429,7 +429,7 @@
"extension_for": [], "extension_for": [],
"module": "Canteen\\HTML5", "module": "Canteen\\HTML5",
"namespace": "", "namespace": "",
"file": "src/Canteen/HTML5/Text.php", "file": "src/Text.php",
"line": 8, "line": 8,
"description": "Special Node representing plain text. Do not initiate this \nclass directly, it is created whenever a text is passed into \na container tag:\n\n\techo html('p', 'Some Text Here');", "description": "Special Node representing plain text. Do not initiate this \nclass directly, it is created whenever a text is passed into \na container tag:\n\n\techo html('p', 'Some Text Here');",
"extends": "Node", "extends": "Node",
@ -452,9 +452,9 @@
"extension_for": [], "extension_for": [],
"module": "global", "module": "global",
"namespace": "", "namespace": "",
"file": "src/Canteen/HTML5/html.php", "file": "src/html.php",
"line": 32, "line": 32,
"description": "This is the global function is the main entry for interacting with the HTML5 for PHP library. \nusing `html()` global function you can create HTML5 quickly and easily. For more\nexamples and instruction on how to use this library, please refer to the the \n<a href=\"https://github.com/bigtimebuddy/CanteenHTML5\">GitHub project</a>. \nTo install the library simply include `html.php`, this takes care of any autoloading that's needed\nfor the rest of the library.\n\n\techo html('img src=home.jpg'); \n\techo html('img', 'src=home.jpg'); \n\techo html('a', array('href'=>'about.html'));", "description": "This is the global function is the main entry for interacting with the HTML5 for PHP library. \nusing `html()` global function you can create HTML5 quickly and easily. For more\nexamples and instruction on how to use this library, please refer to the the \n<a href=\"https://github.com/Canteen/CanteenHTML5\">GitHub project</a>. \nTo install the library simply include `html.php`, this takes care of any autoloading that's needed\nfor the rest of the library.\n\n\techo html('img src=home.jpg'); \n\techo html('img', 'src=home.jpg'); \n\techo html('a', array('href'=>'about.html'));",
"is_constructor": 1, "is_constructor": 1,
"params": [ "params": [
{ {
@ -485,7 +485,7 @@
}, },
"classitems": [ "classitems": [
{ {
"file": "src/Canteen/HTML5/Attribute.php", "file": "src/Attribute.php",
"line": 26, "line": 26,
"description": "The name of the attribute", "description": "The name of the attribute",
"itemtype": "property", "itemtype": "property",
@ -497,7 +497,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Attribute.php", "file": "src/Attribute.php",
"line": 33, "line": 33,
"description": "The value of the attribute", "description": "The value of the attribute",
"itemtype": "property", "itemtype": "property",
@ -509,7 +509,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Attribute.php", "file": "src/Attribute.php",
"line": 46, "line": 46,
"description": "Convert the attribute to an HTML tag attribute string", "description": "Convert the attribute to an HTML tag attribute string",
"itemtype": "method", "itemtype": "method",
@ -522,7 +522,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Attribute.php", "file": "src/Attribute.php",
"line": 56, "line": 56,
"description": "Get the name of this attribute", "description": "Get the name of this attribute",
"itemtype": "method", "itemtype": "method",
@ -535,7 +535,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Attribute.php", "file": "src/Attribute.php",
"line": 66, "line": 66,
"description": "Set the name of this attribute, cannot be empty", "description": "Set the name of this attribute, cannot be empty",
"itemtype": "method", "itemtype": "method",
@ -553,7 +553,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Attribute.php", "file": "src/Attribute.php",
"line": 80, "line": 80,
"description": "Get the value of this attribute", "description": "Get the value of this attribute",
"itemtype": "method", "itemtype": "method",
@ -568,7 +568,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Attribute.php", "file": "src/Attribute.php",
"line": 91, "line": 91,
"description": "Set the value of this attribute, this cannot be empty", "description": "Set the value of this attribute, this cannot be empty",
"itemtype": "method", "itemtype": "method",
@ -586,7 +586,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Attribute.php", "file": "src/Attribute.php",
"line": 102, "line": 102,
"description": "Convert a string into an associative array", "description": "Convert a string into an associative array",
"itemtype": "method", "itemtype": "method",
@ -607,7 +607,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Attribute.php", "file": "src/Attribute.php",
"line": 130, "line": 130,
"description": "General purpose getter for getting attribute->name and attribute->value", "description": "General purpose getter for getting attribute->name and attribute->value",
"access": "public", "access": "public",
@ -623,7 +623,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Attribute.php", "file": "src/Attribute.php",
"line": 143, "line": 143,
"description": "General purpose setter for setting attribute->name and attribute->value", "description": "General purpose setter for setting attribute->name and attribute->value",
"access": "public", "access": "public",
@ -644,7 +644,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Attribute.php", "file": "src/Attribute.php",
"line": 157, "line": 157,
"description": "See if a property exists", "description": "See if a property exists",
"itemtype": "method", "itemtype": "method",
@ -660,7 +660,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Comment.php", "file": "src/Comment.php",
"line": 26, "line": 26,
"description": "Write to HTML", "description": "Write to HTML",
"itemtype": "method", "itemtype": "method",
@ -673,7 +673,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Document.php", "file": "src/Document.php",
"line": 26, "line": 26,
"description": "The document type", "description": "The document type",
"itemtype": "property", "itemtype": "property",
@ -683,7 +683,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Document.php", "file": "src/Document.php",
"line": 32, "line": 32,
"description": "The head node", "description": "The head node",
"itemtype": "property", "itemtype": "property",
@ -693,7 +693,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Document.php", "file": "src/Document.php",
"line": 38, "line": 38,
"description": "The body node", "description": "The body node",
"itemtype": "property", "itemtype": "property",
@ -703,7 +703,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Document.php", "file": "src/Document.php",
"line": 44, "line": 44,
"description": "The title node", "description": "The title node",
"itemtype": "property", "itemtype": "property",
@ -713,7 +713,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Document.php", "file": "src/Document.php",
"line": 50, "line": 50,
"description": "Beautify the output", "description": "Beautify the output",
"itemtype": "property", "itemtype": "property",
@ -723,14 +723,14 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Document.php", "file": "src/Document.php",
"line": 56, "line": 56,
"description": "Constructor for Docs", "description": "Constructor for Docs",
"class": "Document", "class": "Document",
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Document.php", "file": "src/Document.php",
"line": 75, "line": 75,
"description": "Write to HTML", "description": "Write to HTML",
"itemtype": "method", "itemtype": "method",
@ -743,7 +743,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Document.php", "file": "src/Document.php",
"line": 88, "line": 88,
"description": "Beautifies an HTML string into a human-readable and indented work of art.", "description": "Beautifies an HTML string into a human-readable and indented work of art.",
"itemtype": "method", "itemtype": "method",
@ -764,7 +764,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 28, "line": 28,
"description": "The database connection failed", "description": "The database connection failed",
"itemtype": "property", "itemtype": "property",
@ -776,7 +776,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 36, "line": 36,
"description": "The alias for a database is invalid", "description": "The alias for a database is invalid",
"itemtype": "property", "itemtype": "property",
@ -788,7 +788,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 44, "line": 44,
"description": "The database name we're trying to switch to is invalid", "description": "The database name we're trying to switch to is invalid",
"itemtype": "property", "itemtype": "property",
@ -800,7 +800,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 52, "line": 52,
"description": "The mysql where trying to execute was a problem", "description": "The mysql where trying to execute was a problem",
"itemtype": "property", "itemtype": "property",
@ -812,7 +812,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 60, "line": 60,
"description": "The html tag name is invalid", "description": "The html tag name is invalid",
"itemtype": "property", "itemtype": "property",
@ -824,7 +824,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 68, "line": 68,
"description": "When trying to create a node, the name is empty", "description": "When trying to create a node, the name is empty",
"itemtype": "property", "itemtype": "property",
@ -836,7 +836,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 76, "line": 76,
"description": "The parent cannot be empty", "description": "The parent cannot be empty",
"itemtype": "property", "itemtype": "property",
@ -848,7 +848,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 84, "line": 84,
"description": "THe addChildAt is out of bounds", "description": "THe addChildAt is out of bounds",
"itemtype": "property", "itemtype": "property",
@ -860,7 +860,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 92, "line": 92,
"description": "The child node is empty", "description": "The child node is empty",
"itemtype": "property", "itemtype": "property",
@ -872,7 +872,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 100, "line": 100,
"description": "The node is not of instance type Node", "description": "The node is not of instance type Node",
"itemtype": "property", "itemtype": "property",
@ -884,7 +884,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 108, "line": 108,
"description": "Look-up for error messages", "description": "Look-up for error messages",
"itemtype": "property", "itemtype": "property",
@ -897,7 +897,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/HTML5Error.php", "file": "src/HTML5Error.php",
"line": 127, "line": 127,
"description": "The label for an error that is unknown or unfound in messages", "description": "The label for an error that is unknown or unfound in messages",
"itemtype": "property", "itemtype": "property",
@ -909,7 +909,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 22, "line": 22,
"description": "The string name of the tag", "description": "The string name of the tag",
"itemtype": "property", "itemtype": "property",
@ -921,7 +921,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 29, "line": 29,
"description": "The collection of Attributes objects", "description": "The collection of Attributes objects",
"itemtype": "property", "itemtype": "property",
@ -933,7 +933,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 36, "line": 36,
"description": "The parent node, if any", "description": "The parent node, if any",
"itemtype": "property", "itemtype": "property",
@ -945,7 +945,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 43, "line": 43,
"description": "The collection of valid attributes names for given tag", "description": "The collection of valid attributes names for given tag",
"itemtype": "property", "itemtype": "property",
@ -957,7 +957,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 50, "line": 50,
"description": "The default valid attributes", "description": "The default valid attributes",
"itemtype": "property", "itemtype": "property",
@ -969,7 +969,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 90, "line": 90,
"description": "Returns the parent node of this node, if\na parent exists. If no parent exists,\nthis function returns null.", "description": "Returns the parent node of this node, if\na parent exists. If no parent exists,\nthis function returns null.",
"itemtype": "method", "itemtype": "method",
@ -984,7 +984,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 103, "line": 103,
"description": "Sets the parent of this Node. Note that this\nfunction is protected and can only be called by\nclasses that extend Node. The parent cannot\nbe null; this function will throw an Exception\nif the parent node is empty.", "description": "Sets the parent of this Node. Note that this\nfunction is protected and can only be called by\nclasses that extend Node. The parent cannot\nbe null; this function will throw an Exception\nif the parent node is empty.",
"itemtype": "method", "itemtype": "method",
@ -1004,7 +1004,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 122, "line": 122,
"description": "Given a name and value pair, sets an attribute on this Node.\nThe name and value cannot be empty; if so, this function\nwill throw an Exception. Note if the attribute already exists\nand the caller wants to set an attribute of the same name,\nthis function will not create a new Attribute, but rather\nupdate the value of the existing named attribute.", "description": "Given a name and value pair, sets an attribute on this Node.\nThe name and value cannot be empty; if so, this function\nwill throw an Exception. Note if the attribute already exists\nand the caller wants to set an attribute of the same name,\nthis function will not create a new Attribute, but rather\nupdate the value of the existing named attribute.",
"itemtype": "method", "itemtype": "method",
@ -1034,7 +1034,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 156, "line": 156,
"description": "Fetch and attribute by name from this Node. The attribute\nname cannot be null; if so, this function will throw an\nException.", "description": "Fetch and attribute by name from this Node. The attribute\nname cannot be null; if so, this function will throw an\nException.",
"itemtype": "method", "itemtype": "method",
@ -1056,7 +1056,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 183, "line": 183,
"description": "Set the list of all attributes.", "description": "Set the list of all attributes.",
"itemtype": "method", "itemtype": "method",
@ -1076,7 +1076,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 201, "line": 201,
"description": "Set the a data-* HTML5 Attribute", "description": "Set the a data-* HTML5 Attribute",
"params": [ "params": [
@ -1099,7 +1099,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 212, "line": 212,
"description": "Add this child to a node container at the end", "description": "Add this child to a node container at the end",
"itemtype": "method", "itemtype": "method",
@ -1119,7 +1119,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 224, "line": 224,
"description": "Add this child to the beginning of a node container", "description": "Add this child to the beginning of a node container",
"itemtype": "method", "itemtype": "method",
@ -1139,7 +1139,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 236, "line": 236,
"description": "Get the data-* HTML5 attribute value, if set", "description": "Get the data-* HTML5 attribute value, if set",
"itemtype": "method", "itemtype": "method",
@ -1159,7 +1159,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 247, "line": 247,
"description": "Write to HTML", "description": "Write to HTML",
"itemtype": "method", "itemtype": "method",
@ -1172,7 +1172,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 257, "line": 257,
"description": "Start the writing the tag", "description": "Start the writing the tag",
"itemtype": "method", "itemtype": "method",
@ -1196,7 +1196,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 276, "line": 276,
"description": "General purpose getter to get attribute values", "description": "General purpose getter to get attribute values",
"itemtype": "method", "itemtype": "method",
@ -1212,7 +1212,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 290, "line": 290,
"description": "General purpose setter to set attribute values", "description": "General purpose setter to set attribute values",
"itemtype": "method", "itemtype": "method",
@ -1233,7 +1233,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 305, "line": 305,
"description": "See if a property exists", "description": "See if a property exists",
"itemtype": "method", "itemtype": "method",
@ -1249,7 +1249,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Node.php", "file": "src/Node.php",
"line": 315, "line": 315,
"description": "Checks if a variable is really \"empty\". Code borrowed from PHP.net at\nhttp://us3.php.net/manual/en/function.empty.php#90767 because we were\npreviously using empty() to see if a variable is empty or not. But\nempty() dosen't work for attributes that have a value of \"0\", so we need\nsomething more robust here.\n<ul>\n<li>an unset variable -> empty</li>\n<li>null -> empty</li>\n<li>0 -> NOT empty</li>\n<li>\"0\" -> NOT empty</li>\n<li>false -> empty</li>\n<li>true -> NOT empty</li>\n<li>'string value' -> NOT empty</li>\n<li>\"\t\"(white space) -> empty</li>\n<li>array()(empty array) -> empty</li>\n</ul>", "description": "Checks if a variable is really \"empty\". Code borrowed from PHP.net at\nhttp://us3.php.net/manual/en/function.empty.php#90767 because we were\npreviously using empty() to see if a variable is empty or not. But\nempty() dosen't work for attributes that have a value of \"0\", so we need\nsomething more robust here.\n<ul>\n<li>an unset variable -> empty</li>\n<li>null -> empty</li>\n<li>0 -> NOT empty</li>\n<li>\"0\" -> NOT empty</li>\n<li>false -> empty</li>\n<li>true -> NOT empty</li>\n<li>'string value' -> NOT empty</li>\n<li>\"\t\"(white space) -> empty</li>\n<li>array()(empty array) -> empty</li>\n</ul>",
"itemtype": "method", "itemtype": "method",
@ -1267,7 +1267,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/NodeContainer.php", "file": "src/NodeContainer.php",
"line": 24, "line": 24,
"description": "The collection of children nodes", "description": "The collection of children nodes",
"itemtype": "property", "itemtype": "property",
@ -1279,7 +1279,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/NodeContainer.php", "file": "src/NodeContainer.php",
"line": 57, "line": 57,
"description": "Add's a child to this NodeContainer. The child to add cannot be null.", "description": "Add's a child to this NodeContainer. The child to add cannot be null.",
"itemtype": "method", "itemtype": "method",
@ -1299,7 +1299,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/NodeContainer.php", "file": "src/NodeContainer.php",
"line": 69, "line": 69,
"description": "Add a child at a specific index", "description": "Add a child at a specific index",
"itemtype": "method", "itemtype": "method",
@ -1324,7 +1324,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/NodeContainer.php", "file": "src/NodeContainer.php",
"line": 98, "line": 98,
"description": "Before adding a child, we should do some checking for basic types\nand convert it into a more useable Node object.", "description": "Before adding a child, we should do some checking for basic types\nand convert it into a more useable Node object.",
"itemtype": "method", "itemtype": "method",
@ -1346,7 +1346,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/NodeContainer.php", "file": "src/NodeContainer.php",
"line": 128, "line": 128,
"description": "Removes the first instance of child from this. \nOnce the first instance of the child\nis removed, this function will return. It returns\ntrue if a child was removed and false if no child\nwas removed.", "description": "Removes the first instance of child from this. \nOnce the first instance of the child\nis removed, this function will return. It returns\ntrue if a child was removed and false if no child\nwas removed.",
"itemtype": "method", "itemtype": "method",
@ -1368,7 +1368,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/NodeContainer.php", "file": "src/NodeContainer.php",
"line": 157, "line": 157,
"description": "Remove a child as a specific index", "description": "Remove a child as a specific index",
"itemtype": "method", "itemtype": "method",
@ -1388,7 +1388,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/NodeContainer.php", "file": "src/NodeContainer.php",
"line": 173, "line": 173,
"description": "Removes all children attached to this Node container", "description": "Removes all children attached to this Node container",
"itemtype": "method", "itemtype": "method",
@ -1401,7 +1401,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/NodeContainer.php", "file": "src/NodeContainer.php",
"line": 185, "line": 185,
"description": "Returns an array of all children attached to this Node container.", "description": "Returns an array of all children attached to this Node container.",
"itemtype": "method", "itemtype": "method",
@ -1414,7 +1414,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/NodeContainer.php", "file": "src/NodeContainer.php",
"line": 195, "line": 195,
"description": "Gets a child of this Node container at given\nindex. If no index is passed in, getChild()\nwill return the child at index zero (0).", "description": "Gets a child of this Node container at given\nindex. If no index is passed in, getChild()\nwill return the child at index zero (0).",
"itemtype": "method", "itemtype": "method",
@ -1436,7 +1436,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/NodeContainer.php", "file": "src/NodeContainer.php",
"line": 208, "line": 208,
"description": "Close the writing of this container as HTML", "description": "Close the writing of this container as HTML",
"itemtype": "method", "itemtype": "method",
@ -1451,7 +1451,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/NodeContainer.php", "file": "src/NodeContainer.php",
"line": 219, "line": 219,
"description": "Write to HTML", "description": "Write to HTML",
"itemtype": "method", "itemtype": "method",
@ -1464,7 +1464,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/SimpleList.php", "file": "src/SimpleList.php",
"line": 48, "line": 48,
"description": "Override for the prepareChild method on NodeContainer which \nwraps each elements in a list item", "description": "Override for the prepareChild method on NodeContainer which \nwraps each elements in a list item",
"itemtype": "method", "itemtype": "method",
@ -1486,7 +1486,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/Text.php", "file": "src/Text.php",
"line": 27, "line": 27,
"description": "Write to HTML", "description": "Write to HTML",
"itemtype": "method", "itemtype": "method",
@ -1499,7 +1499,7 @@
"module": "Canteen\\HTML5" "module": "Canteen\\HTML5"
}, },
{ {
"file": "src/Canteen/HTML5/html.php", "file": "src/html.php",
"line": 7, "line": 7,
"description": "Auto load the assets in this library", "description": "Auto load the assets in this library",
"class": "html", "class": "html",
@ -1509,23 +1509,23 @@
"warnings": [ "warnings": [
{ {
"message": "Missing item type\nGeneral purpose getter for getting attribute->name and attribute->value", "message": "Missing item type\nGeneral purpose getter for getting attribute->name and attribute->value",
"line": " src/Canteen/HTML5/Attribute.php:130" "line": " src/Attribute.php:130"
}, },
{ {
"message": "Missing item type\nGeneral purpose setter for setting attribute->name and attribute->value", "message": "Missing item type\nGeneral purpose setter for setting attribute->name and attribute->value",
"line": " src/Canteen/HTML5/Attribute.php:143" "line": " src/Attribute.php:143"
}, },
{ {
"message": "Missing item type\nConstructor for Docs", "message": "Missing item type\nConstructor for Docs",
"line": " src/Canteen/HTML5/Document.php:56" "line": " src/Document.php:56"
}, },
{ {
"message": "Missing item type\nSet the a data-* HTML5 Attribute", "message": "Missing item type\nSet the a data-* HTML5 Attribute",
"line": " src/Canteen/HTML5/Node.php:201" "line": " src/Node.php:201"
}, },
{ {
"message": "Missing item type\nAuto load the assets in this library", "message": "Missing item type\nAuto load the assets in this library",
"line": " src/Canteen/HTML5/html.php:7" "line": " src/html.php:7"
} }
] ]
} }

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="./assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="./assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="./assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="./assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : </title> <title>Canteen HTML5 API v1.0.0 API Documentation : </title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : Canteen_HTML5</title> <title>Canteen HTML5 API v1.0.0 API Documentation : Canteen_HTML5</title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
<script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.10.1/build/yui/yui-min.js"></script>
<title>Canteen HTML5 API v${version} API Documentation : global</title> <title>Canteen HTML5 API v1.0.0 API Documentation : global</title>
</head> </head>
<body class="yui3-skin-sam"> <body class="yui3-skin-sam">
@ -19,7 +19,7 @@
</div> </div>
<div class="yui3-u-1-4 version"> <div class="yui3-u-1-4 version">
<em>API Documentation for: ${version}</em> <em>API Documentation for: 1.0.0</em>
</div> </div>
</div> </div>
<div id="bd" class="yui3-g"> <div id="bd" class="yui3-g">