Source for file Item.php
Documentation is available at Item.php
* A Framework for Creating and Using Complex Web Elements
* The purpose of this framework is to provide a library of high-level objects
* to facilitate common HTML coding tasks, such as menus, tables, and forms.
* The intent is to reduce repetitive HTML coding as much as possible, replacing
* it with a combination of configuration files and style sheets with
* standardized naming conventions.
* This framework is built on and requires the
* {@link http://framework.zend.com/ Zend Framework}.
* @author Lyle Frost <lfrost@cnz.com>
* @copyright Copyright (c) 2006-2007 Citadel Network <{@link http://www.citadelnetwork.com/}>
* @license http://www.citadelnetwork.com/license/cnzframework New BSD License
* @version $Id: Item.php 27 2007-07-19 18:47:54Z lfrost $
Zend_Loader::loadClass('Cnz_Html_Element');
* This class is probably not useful directly. It could be an inner class
* of Html_Menu, if PHP supported inner classes.
/* Methods ===========================================================*/
* @param array $options Common options
* @param boolean $customStyleFlag Custom styles
public function __construct($options = NULL, $text, $link)
* @param string $style Value for outermost style attribute
public function display($style = NULL)
if (isset ($this->link) && !empty($this->link))
echo $indent, '<li class = "', $this->genStyles(), '">';
echo '<a class = "', $this->genStyles(), '" href = "', $this->link . '">', $this->text, '</a></li>', "\n";
echo $indent, '</ul>', "\n";
echo $indent, '<hr class = "', $this->genStyles(), '"';
echo $indent, '<ul class = "', $this->genStyles(), '">', "\n";
|