WWW::CheckPad::CheckList - A class to control checklist of check*pad.
See the WWW::CheckPad
WWW::CheckPad::CheckListはcheck*padのチェックリストをコントロールするクラス です。このクラスを通じて、チェックリストの追加・更新・削除を行うことが可能 です。現在、対応していない主要な機能として下記があります。
1.公開・非公開機能 2.公開されたチェックリストの取得
my @checklists = WWW::CheckPad::CheckList->retrieve_all();
retrieve_allは現在ログインしているユーザの全チェックリストを返します。
retrieve_all
my $checklist = WWW::CheckPad::CheckList->retrieve($checklist_id);
retrieveは$checklist_idで指定されたチェックリストを返します。ただし、 この$checklist_idが現在ログインしているユーザのチェックリストを指している 必要があります。現在ログインしているユーザのチェックリスト内で見つからない 時はundefを返します。
retrieve
undef
my $checklist = WWW::CheckPad::CheckList->insert({title => 'title of list'}); 新しいチェックリストを作成し、保存します。
my $checklist_id = $checklist->id();
チェックリストのIDを返す。
my $checklist_title = $checklist->title(); $checklist->title('title of checklist');
チェックリストのタイトルを返す。引数を与えた時はチェックリストのタイトルを変更する。
$checklist->update();
チェックリストの情報を更新します。これにより更新される情報はタイトルだけ なので、下記のようなコーディングが良く使われます。
$checklist->title('update title'); ## update the title $checklist->update();
$checklist->delete();
チェックリストを削除します。
my $checkitem = $checklist->add_checkitem('new todo item');
新しいTodo項目をこのチェックリストに追加します。
my @checkitems = $checklist->checkitems();
このチェックリストに属する、すべてのTodo項目を返します。
WWW::CheckPad
WWW::CheckPad::CheckItem
Ken Takeshige, <ken.takeshige@gmail.com>
http://d.hatena.ne.jp/ya_ken/
Copyright (C) 2006 by Ken Takeshige
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install WWW::CheckPad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::CheckPad
CPAN shell
perl -MCPAN -e shell install WWW::CheckPad
For more information on module installation, please visit the detailed CPAN module installation guide.