[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] com phd: Removing default html title from return and error descriptions: phpdotnet/phd/Pac
From: "Moacir de Oliveira Miranda Júnior" <moacir () php ! net>
Date: 2012-09-30 16:29:40
Message-ID: php-mail-5728aa5966123f61a1f617a74d206333618845671 () git ! php ! net
[Download RAW message or body]
Commit: 46c57a689a8ba54f816f1a9c4af920a0776a0a4a
Author: Moacir de Oliveira <moacir@php.net> Sun, 30 Sep 2012 12:29:40 -0400
Parents: 79ed0cfa218d377fefec805bea7df97cd14b7d35
Branches: master
Link: http://git.php.net/?p=phd.git;a=commitdiff;h=46c57a689a8ba54f816f1a9c4af920a0776a0a4a
Log:
Removing default html title from return and error descriptions
Signed-off-by: Moacir de Oliveira <moacir@php.net>
Changed paths:
M phpdotnet/phd/Package/IDE/Base.php
Diff:
diff --git a/phpdotnet/phd/Package/IDE/Base.php b/phpdotnet/phd/Package/IDE/Base.php
index 3d7b786..41b4e47 100644
--- a/phpdotnet/phd/Package/IDE/Base.php
+++ b/phpdotnet/phd/Package/IDE/Base.php
@@ -357,7 +357,9 @@ abstract class Package_IDE_Base extends Format {
if ($open) {
//Read the description
$content = $this->renderHTML();
- $this->function['return']['description'] = $content;
+ //Remove default title
+ $content = str_replace('<h1 class="title">Return Values</h1>', '', $content);
+ $this->function['return']['description'] = trim($content);
}
}
@@ -378,7 +380,10 @@ abstract class Package_IDE_Base extends Format {
public function format_errors($open, $name, $attrs, $props) {
if ($open) {
//Read the description
- $this->function['errors'] = $this->renderHTML();;
+ $content = $this->renderHTML();
+ //Remove default title
+ $content = str_replace('<h1 class="title">Errors/Exceptions</h1>', '', $content);
+ $this->function['errors'] = trim($content);
}
}
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic