$buffer ="";
$this->addSection($section);
break;
- case "@docbook_page_summary":
+ case "@docbook_page_summary":\r
$summary = preg_replace("/\s*\@docbook_page_summary\s*/i","",$line);
$this->addPara($buffer);
$buffer ="";
}
+ if ($this->name == '__construct') {
+ // list out 'Constants'
+
+ // list out 'public variables..'
+
+
+
+ }
+
+
+
/* -- fixme - needs to read from an example file..
array(
'stype' => 'example',
* @author Alan Knowles <alan@akbkhome.com>
*
*/
+
+require_once 'Param.php';
+
class PHP_CodeDoc_Data_PhpDoc {
var $long = ""; // name of parameter
var $short = ""; // default value
function __construct()
{
- $this->return = new stdClass();
- $this->return->type = '';
- $this->return->desc= '';
+ $this->return = new PHP_CodeDoc_Data_Param();
+
}
function longToHTML()
$ret = '<p>'. $this->long .'</p>';
$ret = preg_replace('/\n\s+\n/','</p><p>',$ret);
+ $bits = explode('```', $ret);
+
+ if (count($bits) > 1) {
+ $otag = $tag ='<br/><code style="white-space: pre">';
+ $ret = '';
+ foreach($bits as $b) {
+ //if ($tag == '</code><br/>') {
+ // $b = preg_replace('/\n/', "<br/>\n", $b);
+ // }
+ $ret .= $b . $tag;
+ $tag = $tag == $otag ? '</code><br/>' : $otag;
+ }
+ }
// code....
return $ret;