Diff for phpPlatonLib/HTML_Content/Content.php between version 1.15 and 1.16
| version 1.15, 2003/01/31 14:40:03 |
version 1.16, 2003/01/31 14:59:03 |
| Line 224 class HTML_Content |
|
| Line 224 class HTML_Content |
|
| if ($idx > count($ar)) { |
if ($idx > count($ar)) { |
| return false; |
return false; |
| } |
} |
| return isset($ar[$idx]) ? $ar[$idx] : ''; |
return @$ar[$idx]; |
| } |
} |
| |
|
| /* $where must be head/body, $name must be lowercase */ |
/* $where must be head/body, $name must be lowercase */ |
| Line 291 class HTML_Content |
|
| Line 291 class HTML_Content |
|
| function getTitle() |
function getTitle() |
| { |
{ |
| $title_tag = $this->_getTag('head', 'title', 0); |
$title_tag = $this->_getTag('head', 'title', 0); |
| return @$title_tag['__content']; |
return @is_array($title_tag) ? @$title_tag['__content'] : ''; |
| } |
} |
| |
|
| function getTag($where, $name, $attr = '', $value = '') |
function getTag($where, $name, $attr = '', $value = '') |
Platon Group <platon@platon.org> http://platon.org/
|
|