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

Class: Admin_Model_Tag

Source Location: /application/modules/admin/models/Tag.php

Class Overview

Common_Model_TagAbstract
   |
   --Admin_Model_Tag

タグ管理サービス


Author(s):

  • saniker10, suzuki-mar

Methods


Inherited Variables

Inherited Methods

Class: Common_Model_TagAbstract

Common_Model_TagAbstract::findTag()
指定したIDのタグ情報を取得する
Common_Model_TagAbstract::findTagsByPageId()
ページIDで指定されたページにつけられたタグの情報を返す。

Class Details

[line 25]
タグ管理サービス



Tags:

author:  saniker10, suzuki-mar


[ Top ]


Class Methods


constructor __construct [line 32]

Admin_Model_Tag __construct( )

コンストラクター



Tags:

author:  charlesvineyard
access:  public


[ Top ]

method countAllTags [line 57]

int countAllTags( )

すべてのタグを数えます。



Tags:

return:  すべてのタグの個数
author:  charlesvineyard
access:  public


[ Top ]

method deleteTag [line 94]

bool deleteTag( $id $id)

タグを削除する。



Tags:

return:  更新できたら true。該当データがなかったら false。
author:  charlesvineyard
access:  public


Parameters:

$id   $id   タグID

[ Top ]

method findTags [line 46]

array findTags( string $order, int $pageNumber, int $limit)

タグ情報を取得する。タグ名でソートします。



Tags:

return:  タグ情報の一覧
author:  saniker10, suzuki-mar, charlesvineyard
access:  public


Parameters:

string   $order   asc か desc
int   $pageNumber   ページ番号(オフセットカウント)
int   $limit   一つのページに出力する数(オフセット)

[ Top ]

method registTag [line 69]

void registTag( string $name)

タグを登録する。



Tags:

author:  saniker10, suzuki-mar
access:  public


Parameters:

string   $name   タグ名

[ Top ]

method updateTag [line 82]

bool updateTag( $id $id, $name $name)

タグを更新する。



Tags:

return:  更新できたら true。該当データがなかったら false。
author:  charlesvineyard
access:  public


Parameters:

$id   $id   タグID
$name   $name   タグ名

[ Top ]


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