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

Source for file htf_tag_ol.phl

Documentation is available at htf_tag_ol.phl

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

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