HtmlTemplateFramework
[ class tree: HtmlTemplateFramework ] [ index: HtmlTemplateFramework ] [ all elements ]

Source for file htf_tag_ul.phl

Documentation is available at htf_tag_ul.phl

  1. <?php
  2. /**
  3.  * htf_tag_ulクラス
  4.  *
  5.  * htmlのulタグ情報を保有・生成するクラス
  6.  *
  7.  * @package HtmlTemplateFramework
  8.  * @subpackage htmltagbase
  9.  * @access  public
  10.  * @author    Yamauchi Shogo <htf@as-prj.com>
  11.  * @version $Id: htf_tag_ul.phl ,v 1.0 $
  12.  ***/
  13. require_once("htf_com_define.inc");        //共通定数
  14. require_once("htf_com_func.inc");        //共通関数
  15. require_once("htf_tag_element.phl");    //エレメントクラス
  16.  
  17. /**
  18.  * htmlのulタグ情報を保有・生成するクラス
  19.  * 
  20.  * htmlのulタグを保有し、保有している内容でhtmlのulタグ記述を生成します。
  21.  *
  22.  * @access  public
  23.  * @author    Yamauchi Shogo <htf@as-prj.com>
  24.  ***/
  25. class htf_tag_ul extends htf_tag_element {
  26.  
  27.     /**
  28.      * コンストラクタ
  29.      *
  30.      * htf_tag_ulを生成します。
  31.      *
  32.      * @param     int    $strelement_case  大文字・小文字出力(デフォルトは小文字)
  33.      * @return    void 
  34.      ***/
  35.     function htf_tag_ul($strelement_case=HTF_CASE_LOWER{
  36.         parent::htf_tag_element("ul"TRUE$strelement_case);
  37.     }
  38.  
  39.     /**
  40.      * 保持しているリスト数を返します。
  41.      *
  42.      * @return    int    成功時:保持している行数
  43.      ***/
  44.  
  45.     function lists({
  46.         return count($this->contents);
  47.     }
  48.  
  49.     /**
  50.      * 引数のhtf_tag_liオブジェクトをリストに追加します。
  51.      *
  52.      * @param     htf_tag_li  $li    liタグオブジェクト
  53.      * @return    int    成功時:追加後のthead内要素数 失敗時:-1
  54.      ***/
  55.     function add_lists($li{
  56.         //カラムオブジェクト追加
  57.         $ret $this->add_content($li);
  58.         if ($ret == -1{
  59.             //行オブジェクト追加失敗
  60.             return -1;
  61.         }
  62.         //要素内容数を返す
  63.         return count($this->contents);
  64.     }
  65. }
  66.  
  67. ?>

Documentation generated on Tue, 19 Sep 2006 06:21:25 +0900 by phpDocumentor 1.3.0