77 lines
1.7 KiB
PHP
77 lines
1.7 KiB
PHP
<?php
|
|
|
|
/** Separator
|
|
* separates menu items
|
|
*
|
|
* @version 1.9.0
|
|
* @since 2007-05-01
|
|
* @author martin lenzelbauer
|
|
*/
|
|
class Separator extends Page{
|
|
|
|
|
|
/** C'tor
|
|
*/
|
|
//------------------------------------------------
|
|
function Separator($id, $parent){
|
|
//------------------------------------------------
|
|
parent::Page($id, $parent);
|
|
$this->name = "[ -------------------- ]";
|
|
$this->lockable = false;
|
|
}
|
|
|
|
|
|
/** @see CmsObject::doPrintClassContent()
|
|
*/
|
|
//-----------------------------------------------
|
|
function doPrintClassContent(){
|
|
//-----------------------------------------------
|
|
$t = new Template(CMS_TEMPLATE_DIR."separator.html");
|
|
return $t->toString();
|
|
}
|
|
|
|
|
|
/** @see Page::doPublish()
|
|
*/
|
|
//----------------------------------------------
|
|
function doPublish(){
|
|
//----------------------------------------------
|
|
return "<br />";
|
|
}
|
|
|
|
|
|
/** the same as doPublish()
|
|
*/
|
|
//------------------------------------------------
|
|
function printAsMenuItem(){
|
|
//------------------------------------------------
|
|
return "<li class=\"separator\">".$this->doPublish()."</li>";
|
|
}
|
|
|
|
|
|
/** @see Element::getCssClass()
|
|
*/
|
|
//------------------------------------------------
|
|
function getCssClass(){
|
|
//------------------------------------------------
|
|
return "itemMenuSeparator";
|
|
}
|
|
|
|
|
|
// === ADDITIONAL METHODS =========================================================== //
|
|
|
|
/** prints as list item in PersonList
|
|
* @param alt flag for alternating template
|
|
* @return string
|
|
*/
|
|
//----------------------------------------
|
|
function publishForPersonList($alt){
|
|
//----------------------------------------
|
|
return "<br /><br /><br />";
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
?>
|