Public Member Functions | |
__construct ($xml) | |
getMeta ($field=null) | |
getBody ($field=null) | |
getHead ($field=null) | |
getInfo ($field=null) | |
getDocId () | |
getApaId () | |
getTitle () | |
getDate () | |
getDocType () | |
getRelations () | |
getFiles () | |
getPlace () | |
getSource () | |
getAuthor () | |
getTeaser () | |
getFilename () | |
getKeywords () | |
getText () | |
getDeleteId () |
Static Public Member Functions | |
static | unaccent ($string) |
Public Attributes | |
$xml |
Class to work with content of an apa xml file. It provides an opportunity to get necessary parameters of news
Definition at line 10 of file parserXML.php.
parserXML::__construct | ( | $xml | ) |
parserXML::getApaId | ( | ) |
Function returns ID of current xml file
Definition at line 98 of file parserXML.php.
References getMeta().
parserXML::getAuthor | ( | ) |
Function returns author
Definition at line 200 of file parserXML.php.
References getInfo().
parserXML::getBody | ( | $field = null | ) |
Function returns content of tag with name $field from BODY tag
string | $field | name of tag which content should be returned |
Definition at line 46 of file parserXML.php.
Referenced by getFiles(), getPlace(), getRelations(), getSource(), getTeaser(), and getText().
parserXML::getDate | ( | ) |
Function returns date of current xml file
Definition at line 128 of file parserXML.php.
References getMeta().
parserXML::getDeleteId | ( | ) |
Function returns docid of news line which should be removed
Definition at line 260 of file parserXML.php.
parserXML::getDocId | ( | ) |
Function returns DOCID of current xml file
Definition at line 89 of file parserXML.php.
References getMeta().
parserXML::getDocType | ( | ) |
Function returns DOCTYP of current xml file
Definition at line 141 of file parserXML.php.
References getMeta().
parserXML::getFilename | ( | ) |
Function returns title of document without accents and shortened to 64 characters
Definition at line 218 of file parserXML.php.
References getHead(), and unaccent().
parserXML::getFiles | ( | ) |
Function returns array of child files parameters
Definition at line 163 of file parserXML.php.
References getBody().
parserXML::getHead | ( | $field = null | ) |
Function returns content of tag with name $field from HEAD tag
string | $field | name of tag which content should be returned |
Definition at line 61 of file parserXML.php.
Referenced by getFilename(), getKeywords(), and getTitle().
parserXML::getInfo | ( | $field = null | ) |
Function returns content of tag with name $field from INFO tag
string | $field | name of tag which content should be returned |
Definition at line 76 of file parserXML.php.
Referenced by getAuthor().
parserXML::getKeywords | ( | ) |
Function returns keywords of document
Definition at line 230 of file parserXML.php.
References getHead().
parserXML::getMeta | ( | $field = null | ) |
Function returns content of tag with name $field from META tag
string | $field | name of tag which content should be returned |
Definition at line 31 of file parserXML.php.
Referenced by getApaId(), getDate(), getDocId(), and getDocType().
parserXML::getPlace | ( | ) |
Function returns place
Definition at line 182 of file parserXML.php.
References getBody().
parserXML::getRelations | ( | ) |
Function returns array of child files
Definition at line 150 of file parserXML.php.
References getBody().
parserXML::getSource | ( | ) |
Function returns source
Definition at line 191 of file parserXML.php.
References getBody().
parserXML::getTeaser | ( | ) |
Function returns title of article in text tag
Definition at line 209 of file parserXML.php.
References getBody().
parserXML::getText | ( | ) |
Function returns text of article
Definition at line 245 of file parserXML.php.
References getBody().
parserXML::getTitle | ( | ) |
Function returns title of current xml file
Definition at line 119 of file parserXML.php.
References getHead().
|
static |
Function returns string without accents
string | $string | string in which should be removed accents |
Definition at line 109 of file parserXML.php.
Referenced by getFilename().