PHP Classes

Packages of Marco Marchiņ

Recommend this page to a friend!
  All class groups  >  All authors  >  Packages of Marco Marchiò (3)  >  Mission progress status  >  Reputation  
Picture of Marco Marchiņ
Name: Marco Marchiņ <contact>
Classes: 3
Country: Italy Italy
Age: 37
All time rank: 78429 in Italy Italy
Week rank: 195 Up8 in Italy Italy Up
All time users: 3971
Week users: 0
Innovation award
Innovation award
Nominee: 2x
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Class Prototype  
PHP Programming Innovation award nominee
February 2010
Number 2


Prize: One year subscription to the PDF edition of the JSMag magazine
Define variables of all class objects dynamically
This class can be used to define variables of all class objects dynamically similar to Javascript prototype.

It defines a base class that assigns values to variables of existing and future objects of derived classes.
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 83% 83% 83% 83% - - 66% 521
Month: Not yet rated by the users

  Files folder image HTMLPP  
Parse HTML code and manage the DOM structure
HTMLPP is a PHP4 library for HTML code parsing. It allows you to parse a HTML code string, build the relative DOM structure and work on it with methods similar to Javascript.

Features:


HTML parsing:
- Simple tags
- Tags without closures
- Autoclosing tags
- Doctype, text and comment parsing
- Modern browser parsing behaviour (Add head,body and html tags if they're not present, Wrap table content inside the tbody if it's not present)

Dom traversing:
- Access to the parent node using the parentNode property
- Access to child nodes using the childNodes array property
- Access to sibling nodes using nextSibling and previousSibling properties
- Access to the owner document with ownerDocument property
- Document shortcuts to body, head and doctype

Dom manipulation:
- Append nodes with appendChild, append and other methods
- Remove nodes with removeChild and remove methods
- Replace nodes with replaceChild and replace methods

Attributes and style manipulation:
- Add, remove, set and get methods for attributes
- Add, remove, set and get methods for style properties

Node searching functions on every element:
- getElementById
- getElementsByTagName
- getElementsByClassName
- getElementsBySelector (Full featured support for Css3 selectors, Support for other non-standard selectors)
- Node iterator class for personalized filter functions

Dom collections with JQuery like methods:
- Add, remove and filter elements in the collection
- Change the current collection by searching in its elements siblings, child nodes or parent nodes
- Manipulate elements in the collection



Changelog:

1.0
- first release
1.0.1
- Fixed some bugs in elements parsing regexp
- Fixed a bug in doctype parsing
- Fixed some problems in the parser class
- Fixed a bug in HTMLFilterIterator::find() function when pass HTML_SEARCH_DESCENDANT as iteration type
1.0.2
- Fixed error on selector parsing
- Now every element is closed at the end of its parent code if no closing tag is found
- Better support for textarea tag
- Fixed bug on attributes parsing (thanks Mike)
1.0.3
- Fixed bug in getAttribute() method
- Fixed bug in getStyle() method
- Fixed bug on attributes parsing
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 85% 70% 80% - - - 57% 1622
Month: Not yet rated by the users

  Files folder image Regexp Builder  
PHP Programming Innovation award nominee
November 2009
Number 3


Prize: One year subscription to the PDF edition of the JSMag magazine
Build regular expressions programmatically
This class can be used to build regular expressions programmatically.

It provides clearly named functions to add each part of a regular expression, such as matching the beginning or end of the text, match a range of characters, match any text, match a portion of text multiple times, capture a portion of the text, etc..

The resulting regular expression can be applied on a given text string to match.

Changelog:
1.0
- Added replaceWith, replaceWithCallback, split and grep methods
- Fixed bug on characters escape
- Added 6 more tests

0.2
- Fixed bug on conditions using PRECEEDED_BY and NOT_PRECEEDED_BY
- Added 2 more tests

0.1
- first release
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 92% 87% 85% 87% - - 72% 196
Month: Not yet rated by the users


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z