Login   Register  
PHP Classes
elePHPant
Icontem

File: Consts.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jonas Raoni Soares Silva  >  3-Level DOM Implementation  >  Consts.php  >  Download  
File: Consts.php
Role: Auxiliary script
Content type: text/plain
Description: Constants declarations file
Class: 3-Level DOM Implementation
Class to manage data upon the DOM specification.
Author: By
Last change: New constants were added
Date: 2003-06-09 05:45
Size: 3,162 bytes
 

Contents

Class file image Download
<?PHP
/*= USER INFO ============================================
» Coded by:
»» Jonas Raoni Saores Silva
» Delphi Developer :: WebDeveloper
»» jonblackjack@ig.com.br
» NetWorks - Fast Solutions
»» http://www.networks.com.br
========================================================*/

/*= CLASS INFO ===========================================
» My user account at phpclasses.org:
»» http://www.phpclasses.org/browse.html/author/84147.html
» Get the latest version of this class at:
»» http://www.phpclasses.org/browse.html/package/1150.html
========================================================*/

/*= FILE VERSION =========================================
» Revision date: 2003/06/06 22:00:00 GMT -3:00
»» Status: Ok
» File Version: Consts.php v1.0
========================================================*/

//:: NODE TYPES :: //
Define('ELEMENT_NODE'1True);
Define('ATTRIBUTE_NODE'2True);
Define('TEXT_NODE'3True);
Define('CDATA_SECTION_NODE'4True);
Define('ENTITY_REFERENCE_NODE'5True);
Define('ENTITY_NODE'6True);
Define('PROCESSING_INSTRUCTION_NODE'7True);
Define('COMMENT_NODE'8True);
Define('DOCUMENT_NODE'9True);
Define('DOCUMENT_TYPE_NODE'10True);
Define('DOCUMENT_FRAGMENT_NODE'11True);
Define('NOTATION_NODE'12True);

//:: NODE POSITION RETURNS :: //
Define('DOCUMENT_POSITION_DISCONNECTED'0x01True);
Define('DOCUMENT_POSITION_PRECEDING'0x02True);
Define('DOCUMENT_POSITION_FOLLOWING'0x04True);
Define('DOCUMENT_POSITION_CONTAINS'0x08True);
Define('DOCUMENT_POSITION_IS_CONTAINED'0x10True);
Define('DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC'0x20True);

//:: USER DATA HANDLER OPERATION TYPE :: //
Define('NODE_CLONED'1True);
Define('NODE_IMPORTED'2True);
Define('NODE_DELETED'3True);
Define('NODE_RENAMED'4True);
Define('NODE_REMOVED'5True);

//:: DOM ERROR SEVERITY :://
Define('SEVERITY_WARNING'1True);
Define('SEVERITY_ERROR'2True);
Define('SEVERITY_FATAL_ERROR'3True);

//:: ERROR TYPES :://
Define('INDEX_SIZE_ERR'1True);
Define('DOMSTRING_SIZE_ERR'2True);
Define('HIERARCHY_REQUEST_ERR'3True);
Define('WRONG_DOCUMENT_ERR'4True);
Define('INVALID_CHARACTER_ERR'5True);
Define('NO_DATA_ALLOWED_ERR'6True);
Define('NO_MODIFICATION_ALLOWED_ERR'7True);
Define('NOT_FOUND_ERR'8True);
Define('NOT_SUPPORTED_ERR'9True);
Define('INUSE_ATTRIBUTE_ERR'10True);
Define('INVALID_STATE_ERR'11True);
Define('SYNTAX_ERR'12True);
Define('INVALID_MODIFICATION_ERR'13True);
Define('NAMESPACE_ERR'14True);
Define('INVALID_ACCESS_ERR'15True);
Define('VALIDATION_ERR'16True);


$POSITION_STRINGS = array(DOCUMENT_POSITION_DISCONNECTED=>'DOCUMENT_POSITION_DISCONNECTED',
    
DOCUMENT_POSITION_PRECEDING=>'DOCUMENT_POSITION_PRECEDING',
    
DOCUMENT_POSITION_FOLLOWING=>'DOCUMENT_POSITION_FOLLOWING',
    
DOCUMENT_POSITION_CONTAINS=>'DOCUMENT_POSITION_CONTAINS',
    
DOCUMENT_POSITION_IS_CONTAINED=>'DOCUMENT_POSITION_IS_CONTAINED',
    
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=>'DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC'
)


?>