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

Class: Default_Model_Page

Source Location: /application/modules/default/models/Page.php

Class Overview

Common_Model_PageAbstract
   |
   --Default_Model_Page

ページ情報管理クラス


Author(s):

  • suzuki-mar akitsukada

Methods


Inherited Variables

Inherited Methods

Class: Common_Model_PageAbstract

Common_Model_PageAbstract::countAllPages()
全てのページを数えます。
Common_Model_PageAbstract::countPagesByCategoryId()
指定したカテゴリに属するページの数を取得する
Common_Model_PageAbstract::countPagesByKeyword()
ページのキーワード検索結果の合計数を求める。
Common_Model_PageAbstract::countPagesByStatus()
状態と作成年月をに合ったページを数えます。
Common_Model_PageAbstract::findPage()
ページ情報を取得する
Common_Model_PageAbstract::findPagesByCategoryId()
カテゴリを指定してページを取得する(ページネータ対応)
Common_Model_PageAbstract::searchPages()
ページのキーワード検索を行う。検索対象はタイトル、本文、概要、タグ。(ページネータ対応)
Common_Model_PageAbstract::_searchTagIdsByKeyword()
タグ名をキーワード検索し、該当するタグのIDを返す

Class Details

[line 25]
ページ情報管理クラス



Tags:

author:  suzuki-mar akitsukada


[ Top ]


Class Methods


constructor __construct [line 33]

Default_Model_Page __construct( )

初期設定をする



Tags:

author:  suzuki_mar
access:  public


[ Top ]

method countPagesByTagId [line 102]

int countPagesByTagId( int $tagId)

指定したタグIDのタグがつけられたページの数を取得する



Tags:

return:  該当するページ数
author:  akitsukada
access:  public


Parameters:

int   $tagId   カウントしたいタグのID

[ Top ]

method findLastUpdatedPages [line 45]

void findLastUpdatedPages( int $limit)

最新の編集したページを取得する



Tags:

author:  suzuki-mar
access:  public


Parameters:

int   $limit   何件のデータを取得するのか 標準は10件 取得できない場合はfalseを返す

[ Top ]

method findPagesByTagId [line 90]

array findPagesByTagId( int $tagId, $currentPage, $limit)

タグを指定してページを取得する



Tags:

return:  該当するタグがつけられたページのデータを格納した配列
author:  akitsukada
access:  public


Parameters:

int   $tagId   取得したいタグID
   $currentPage  
   $limit  

[ Top ]

method isEntryExists [line 64]

boolean isEntryExists( )

ページを登録しているか



Tags:

return:  ページを登録している
author:  suzuki-mar
access:  public


[ Top ]

method isEntryUncategorizedPage [line 77]

boolean isEntryUncategorizedPage( )

未分類のカテゴリーのページを登録しているか



Tags:

return:  未分離のカテゴリーのページを登録しているか
author:  suzuki-mar
access:  public


[ Top ]


Documentation generated on Mon, 07 Feb 2011 01:28:24 +0900 by phpDocumentor 1.4.3