[Patch] HTML_Page2
| From: | Ian Warner | Date: | Thu, 05 Oct 2006 06:07:46 +0000 |
| Subject: | [Patch] HTML_Page2 | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-44344@lists.php.net to get a copy of this message | ||
HI
Just added the ability to add in a BASE tag
i.e. <base href="http://iwarner/site_template/" />
comes below the TITLE.
Sorry I am not a competent user with DIF programs yet but will try and learn and send these next time instead of a modified file.
but it is alll addtions - search on base to find changes, but listed below.
/**
* HTML page Base
*
* @var string
* @access private
* @since 2.0
*/
var $_base = '';
// Generate the base tag.
// Pre-XHTML compatibility:
// This comes after meta tags because of possible
// http-equiv character set declarations.
$strHtml .= $tab . '<base href="' . $this->getBase() . '" />' . $lnEnd;
/**
* Return the title of the page.
*
* @return string
* @access public
*/
function getBase()
{
return $this->_base;
} // end func getBase
/**
* Sets the base of the page
*
* <p>Usage:</p>
*
* <code>
* $page->setBase('My URL');
* </code>
*
* @param string $base
* @access public
* @return void
*/
function setBase($base)
{
$this->_base = $base;
} // end func setTitle