34 return (
string)$this->xml->HEAD->META[$field];
36 return $this->xml->HEAD->META;
49 return $this->xml->BODY->$field;
51 return $this->xml->BODY;
64 return $this->xml->HEAD->$field;
66 return $this->xml->HEAD;
79 return $this->xml->INFO->$field;
81 return $this->xml->INFO;
91 return (
string)$this->
getMeta(
'DOCID');
100 return (
string)$this->
getMeta(
'ID');
110 return strtr(utf8_decode($string),
111 utf8_decode(
'ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ'),
112 'SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy');
121 return (
string)$this->
getHead(
'TITLE');
130 $date = (string)$this->
getMeta(
'TIMEDATE');
132 $date = date(
'Y-m-d G:i:s',strtotime($date));
133 $date =
new DateTime($date);
134 return $date->format(
'U');
143 return (
string)$this->
getMeta(
'DOCTYP');
152 $relations = array();
153 foreach($this->
getBody(
'TEXT')->LINK as $relation){
154 $relations[] = (string)$relation[
'HREF'];
166 foreach($this->
getBody(
'TEXT')->LINK as $file){
168 'href' => (
string)$file[
'HREF'],
169 'size' => (
string)$file[
'SIZE'],
170 'width' => (
string)$file[
'WIDTH'],
171 'height' => (
string)$file[
'HEIGHT'],
172 'format' => (
string)$file[
'FORMAT'],
184 return (
string)$this->
getBody(
'PLACE');
193 return (
string)$this->
getBody(
'SOURCE');
202 return (
string)$this->
getInfo(
'AUTHOR');
211 return (
string)$this->
getBody(
'TEXT')->LEAD;
221 $filename = strtr($filename,array(
' ' =>
'_',
'"'=>
''));
222 $filename = substr($filename,0,64);
233 foreach($this->
getHead(
'KEYWORD') as $kw){
234 $keywords[] = (string)$kw;
236 $keywords = implode(
',',$keywords);
248 foreach($this->
getBody(
'TEXT')->P as $paragraph){
249 $text[] = (string)$paragraph;
251 $text =
'<p>'.implode(
'</p><p>',$text).
'</p>';
262 return (
string)$this->xml->delitem[
'apaid'];