|Classes of Juan Jose||>||DOM Basic||>||README.md||>||Download|
<a href="http://guerratron.github.io/DOMbasic"><img src="http://guerratron.github.io/DOMbasic/assets/DOMbasic_logo.png" title="DOMbasic GitHub page" alt="dombasic logo" /></a> <!--- %% ---> *DOMbasic. Juan José Guerra Haba - 2014 - firstname.lastname@example.org email@example.com - firstname.lastname@example.org*
PHP package to create dynamic DOM elements. It follow the OOP paradigm, implemented SINGLETON patterns, magical methods, contains error control ('own exceptions'), chaining methods, optimized memory and resources, ...
More flexible and lighter than the native PHP. It allows you to create any document labeling: HTML, XHTML, XML, ... including any user-defined (this includes those who are yet to be implemented) that are based on hierarchies of tags, attributes and content; this You can be achieved simply by modifying the constants file specify, opening and closing tags and a couple of other modifications.
Although there are other ways to achieve the same (text variables, other APIs, ...) This method is designed for flexibility and dynamism, performance and low resource consumption. Once you understand the mechanism and its syntax, saving time and effort, errors are minimized and DOM construction and automated cleaner is achieved. We all know the problems that can be generated when processing a Web page on the fly successive chaining 'Echo, print, ... " making sure that the headers are not sent in advance; these errors multiplied by a thousand if we use Frameworks or type CMS (Joomla, Wordpress, Drupal, ...)
They have been implemented utility functions that allow us to quickly convert theDOM* tree JSON text, HTML, XML, ... and vice versa. * Maintain tight control 'Exceptions' providing much information when debugging. Classes that follow theSINGLETON* pattern. * Contains methods 'constructor' and 'destructor' to optimize memory. Methods called magical (getter, setter, unset, clone, toString, ...*). Configuration file writable for the accommodation of the basic parameters ofINI DOM*. Chaining methods [NO GETTER*]. Programming entirely within the paradigmOOP*. * ... Other utility functions.
PHP* > 4 The modules that support for readingINI,JSONandXMLfiles, must be enabled inPHP*. * Having wanted to write code. jejejejj
1. You do not require installation.
Place the pakage in the desired route by which to call to instructions 'include' or 'require'. (obviously if it's in a compressed format before DECOMPRESS) We suggest creating a folder (for example DOM) and place it inside.
Load the main input class 'DOM_element' by 'include' or some variant clause:include_once, require ...* by example:
WEB FLOW CREATION:
* The normal flow for building a Web page would be: DOCTYPE -> HTML (HEAD -> BODY).
* SEWING OF ELEMENTS:
* WEB PRINTING: