Class jDaoParser

Description

extract data from a dao xml content

Located in /dao/jDaoParser.class.php (line 23)


	
			
Variable Summary
Method Summary
jDaoParser __construct ( $selector)
array getAttr (SimpleXmlElement $tag, array $requiredattr)
boolean getBool ( $value)
void getInnerJoins ()
void getMethods ()
void getOuterJoins ()
void getPrimaryTable ()
void getProperties ()
void getTables ()
void hasEvent ( $event)
void parse (SimpleXmlElement $xml, jDbTools $tools, int $debug)
void parseDatasource ( $xml)
void parseFactory ( $xml)
void parseRecord ( $xml,  $tools)
Variables
mixed $hasOnlyPrimaryKeys = false (line 69)
  • access: public
mixed $selector (line 71)
  • access: public
Methods
Constructor __construct (line 75)

Constructor

jDaoParser __construct ( $selector)
  • $selector
getAttr (line 197)

Try to read all given attributes

  • return: attributes and their values
  • access: public
array getAttr (SimpleXmlElement $tag, array $requiredattr)
  • SimpleXmlElement $tag
  • array $requiredattr: attributes list
getBool (line 214)

just a quick way to retrieve boolean values from a string.

will accept yes, true, 1 as "true" values all other values will be considered as false.

  • return: true / false
  • access: public
boolean getBool ( $value)
  • $value
getInnerJoins (line 223)
  • access: public
void getInnerJoins ()
getMethods (line 221)
  • access: public
void getMethods ()
getOuterJoins (line 222)
  • access: public
void getOuterJoins ()
getPrimaryTable (line 220)
  • access: public
void getPrimaryTable ()
getProperties (line 218)
  • access: public
void getProperties ()
getTables (line 219)
  • access: public
void getTables ()
hasEvent (line 224)
  • access: public
void hasEvent ( $event)
  • $event
parse (line 85)

parse a dao xml content

  • access: public
void parse (SimpleXmlElement $xml, jDbTools $tools, int $debug)
  • SimpleXmlElement $xml
  • jDbTools $tools
  • int $debug: for debug only 0:parse all, 1:parse only datasource+record, 2;parse only datasource
parseDatasource (line 91)
  • access: protected
void parseDatasource ( $xml)
  • $xml
parseFactory (line 126)
  • access: protected
void parseFactory ( $xml)
  • $xml
parseRecord (line 110)
  • access: protected
void parseRecord ( $xml,  $tools)
  • $xml
  • $tools

Documentation generated on Wed, 24 Sep 2014 21:57:44 +0200 by phpDocumentor 1.4.3