<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet type="text/xsl" media="screen" href="http://lily.la/modules/iPhone/skin/loader.php?src=rss.en.xml" ?>
<rdf:RDF
  xmlns:dc="http://purl.org/dc/elements/1.1/"

  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xml:lang="ja">
 <channel rdf:about="http://lily.la/modules/iPhone/index.php">
  <title>lilylabo::iPhone</title>
  <link>http://lily.la/modules/iPhone/index.php</link>
  <description>xpWiki RecentChanges</description>
  <dc:date>2009-06-01T01:45:54+09:00</dc:date>
  <image rdf:resource="http://lily.la/modules/iPhone/index.phpmodule_icon.php" />
  <items>
   <rdf:Seq>
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/xoops/tips" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/lilylabo%E3%81%AB%E5%8F%82%E5%8A%A0%E3%81%99%E3%82%8B" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/Bookmark/developer" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/Bookmark" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/development/sound" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/development" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/tool/sound/Max" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/tool" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/word/Objective-C/class" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/word/Objective-C/C%E3%81%AE%E3%82%B9%E3%83%BC%E3%83%91%E3%83%BC%E3%82%BB%E3%83%83%E3%83%88" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/word/Objective-C" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/word/Instruments" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/word/Interface%20Builder" />
    <rdf:li rdf:resource="http://lily.la/modules/iPhone/index/word" />

   </rdf:Seq>
  </items>
 </channel>
 <image rdf:about="http://lily.la/modules/iPhone/index.phpmodule_icon.php">
   <title>lilylabo::iPhone</title>
   <link>http://lily.la/modules/iPhone/index.php</link>
   <url>http://lily.la/modules/iPhone/index.phpmodule_icon.php</url>
 </image>

<item rdf:about="http://lily.la/modules/iPhone/index.php?xoops%2Ftips">
 <title>xoops/tips</title>
 <link>http://lily.la/modules/iPhone/index/xoops/tips</link>
 <dc:date>2009-05-31T17:10:05+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>
とてもまとまっていたので転載しました。    
元情報：http://tokita.net/modules/pukiwiki/31.ht&amp;#8203;ml#ct31_1_57
XOOPS 2.0.xでプログラムを作る際のTIPSを書いています。
 
  Table of contents
 
 
   とてもまとまっていたので転載しました。 
 モジュール 
 モジュールを作りたい 
 D3モジュールについて 
 モジュールのIDを得る 
 データベース関係 
 データベースにアクセスしたい </description>
 <content:encoded><![CDATA[
 <div>
<h2>とてもまとまっていたので転載しました。  <a href="http://lily.la/modules/iPhone/index/xoops/tips#t3118e68" title="t3118e68"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=t3118e68" title="Edit of  xoops/tips#t3118e68"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#t3118e68" /> </a></h2>
<p>元情報：<a href="http://tokita.net/modules/pukiwiki/31.html#ct31_1_57" title="tokita.net/modules/pukiwiki/31.html#ct31_1_57">http://tokita.net/modules/pukiwiki/31.html#ct31_1_57</a></p>
<p><span>XOOPS<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=XOOPS&amp;refer=xoops%2Ftips" title="Edit of  XOOPS"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span> 2.0.xでプログラムを作る際のTIPSを書いています。</p>
<div>
 <div>
  Table of contents
 </div>
 <div>
  <ul><li> とてもまとまっていたので転載しました。 </li>
<li> モジュール 
<ul><li> モジュールを作りたい </li>
<li> D3モジュールについて </li>
<li> モジュールのIDを得る </li></ul></li>
<li> データベース関係 
<ul><li> データベースにアクセスしたい </li>
<li> 直前のクエリーで影響を与えた行数を返す。 </li>
<li> 直近の INSERT 操作で生成された ID を得る </li>
<li> サニタイズ処理 </li>
<li> 自動採番（auto_increment）しているカラムの次の値を得る </li></ul></li>
<li> ユーザ、グループ関係 
<ul><li> 現在のユーザIDを取ってくる </li>
<li> ユーザ情報を得る </li>
<li> ユーザを追加する </li>
<li> ユーザ情報を変更する </li>
<li> ユーザを削除する </li>
<li> グループ情報を得る </li>
<li> グループを追加する </li>
<li> グループ情報を変更する </li>
<li>  グループを削除する </li>
<li> メンバーハンドラー($member_handler)を得る </li>
<li> モジュールハンドラー($module_handler)を得る </li>
<li>  まとめてユーザID、グループIDを取ってくる </li>
<li> ユーザの所属グループIDを取って来る </li>
<li> あるグループに属するユーザのIDを得る </li>
<li> プログラム的にユーザをグループに追加したい </li>
<li>  プログラムの中で管理者メールアドレスを得る </li></ul></li>
<li> テーマ周り 
<ul><li> ブラウザのタイトルバーの表示名を変えたい </li>
<li> ブロック内で $xoopsModuleConfig を得る </li></ul></li>
<li> 権限 
<ul><li>  今表示しているユーザが管理者グループに属しているか調べる </li>
<li> ブロック管理権限があるか調べる </li>
<li>  xxxxモジュールの読み込み権限があるか調べる </li>
<li>  xxxxモジュールの管理権限があるか調べる </li>
<li>  登録ユーザグループが管理権限を持っているモジュールのIDを配列で返す </li>
<li>  登録ユーザグループが読込権限を持っているモジュールのIDを配列で返す </li>
<li> 今表示しているモジュールの管理者か調べる </li>
<li>  モジュールのグループの権限を調べる </li></ul></li>
<li> 参考資料 
<ul><li> XOOPS API のリファレンスが読みたい </li></ul></li>
<li> その他 
<ul><li>  画像のアップロードを行いたい </li>
<li>  YAMLを使いたい </li>
<li>  XoopsGTicketとは？ </li>
<li> コメントを使えるようにしたい </li>
<li> 管理画面で設定できるようにしたい（config） </li>
<li> イベント通知したい（notification_handler） </li>
<li> XoopsThemeFormを使いたい </li>
<li> ブロックを作りたい </li>
<li> XOOPS標準の検索で検索きるようにしたい </li>
<li> 管理画面を追加したい </li>
<li> メニューにサブメニューを追加したい </li>
<li> バッチ処理プログラム等でXOOPSの設定を読み込みたい </li>
<li>  ファイルをダウンロードさせたい </li>
<li>  プログラムの中でサイト名を得る </li></ul></li>
<li> 小技 
<ul><li> assert() を活用する </li></ul></li>
<li> 未整理 
<ul><li> 更新後のリダイレクト画面を出したい </li>
<li> 登録ユーザにメール、もしくはPMを送りたい </li></ul></li></ul>
 </div>
</div>
<!--t3118e68--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h2>モジュール  <a href="http://lily.la/modules/iPhone/index/xoops/tips#v200efd1" title="v200efd1"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=v200efd1" title="Edit of  xoops/tips#v200efd1"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#v200efd1" /> </a></h2>
<!--v200efd1--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>モジュールを作りたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#b66446a1" title="b66446a1"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=b66446a1" title="Edit of  xoops/tips#b66446a1"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#b66446a1" /> </a></h3>
<p>取り急ぎ形だけ作りたい場合はこちら <a href="http://tokita.info/modules/makemodule/" title="tokita.info/modules/makemodule/">XOOPSモジュール生成</a> 使ってみてください。ガワだけできます。</p>
<p>参考になるサイト</p>
<ul><li>[[モジュール開発キックスタートガイド:http://xoops.sourceforge.jp/wiki/xoops2/index?TECH %2F%A5%E2%A5%B8%A5%E5%A1%BC%A5%EB%A4%CE%BA%EE%A4%EA%CA%FD]]</li>
<li><a href="http://www.peak.ne.jp/support/XOOPS2nd/xoops2nd.html" title="www.peak.ne.jp/support/XOOPS2nd/xoops2nd.html">モジュール作成のすすめ</a></li>
<li><a href="http://kisa.homeip.net/wiki/?%BA%C7%A4%E2%B4%CA%C3%B1%A4%CA%A5%E2%A5%B8%A5%E5%A1%BC%A5%EB" title="kisa.homeip.net/wiki/?%BA%C7%A4%E2%B4%CA%C3%B1%A4%CA%A5%E2%A5%B8%A5%E5%A1%BC%A5%EB">XOOPSのモジュールを作ろう！</a></li></ul>
<!--b66446a1--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>D3モジュールについて  <a href="http://lily.la/modules/iPhone/index/xoops/tips#af44c87d" title="af44c87d"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=af44c87d" title="Edit of  xoops/tips#af44c87d"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#af44c87d" /> </a></h3>
<p>参考サイト</p>
<ul><li><a href="http://xoops.kudok.com/d3.htm" title="xoops.kudok.com/d3.htm">なぜD3モジュールなのか？</a></li></ul>
<!--af44c87d--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>モジュールのIDを得る  <a href="http://lily.la/modules/iPhone/index/xoops/tips#be33fa32" title="be33fa32"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=be33fa32" title="Edit of  xoops/tips#be33fa32"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#be33fa32" /> </a></h3>
<div><pre>$module_handler =&amp; xoops_gethandler('module');
$xoopsModule =&amp; $module_handler-&gt;getByDirname($basename);
$mid = $xoopsModule-&gt;mid();</pre></div>
<!--be33fa32--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h2>データベース関係  <a href="http://lily.la/modules/iPhone/index/xoops/tips#c5068820" title="c5068820"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=c5068820" title="Edit of  xoops/tips#c5068820"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#c5068820" /> </a></h2>
<!--c5068820--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>データベースにアクセスしたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#p5f5e09b" title="p5f5e09b"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=p5f5e09b" title="Edit of  xoops/tips#p5f5e09b"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#p5f5e09b" /> </a></h3>
<p>DBへのコネクションを以下のようにして得る</p>
<p>$xoopsDB を使う。</p>
<p>もしくは</p>
<p>$db =&amp; Database::getInstance();</p>
<!--p5f5e09b--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>直前のクエリーで影響を与えた行数を返す。  <a href="http://lily.la/modules/iPhone/index/xoops/tips#pa5b318e" title="pa5b318e"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=pa5b318e" title="Edit of  xoops/tips#pa5b318e"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#pa5b318e" /> </a></h3>
<p>これで分かる。</p>
<p>$row = $xoopsDB-&gt;getAffectedRows();</p>
<p>該当行があったらUPDATE、なかったらINSERTしたい場合はこのようにすると無駄がない。<br />
（厳密にするにはトランザクション処理が必要）</p>
<div><pre>UPDATE処理
if ($xoopsDB-&gt;getAffectedRows() == 0) {
  // UPDATEで更新されなかった
  INSERT処理
}</pre></div>
<!--pa5b318e--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>直近の INSERT 操作で生成された ID を得る  <a href="http://lily.la/modules/iPhone/index/xoops/tips#v8f31580" title="v8f31580"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=v8f31580" title="Edit of  xoops/tips#v8f31580"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#v8f31580" /> </a></h3>
<div><pre>$xoopsDB-&gt;getInsertId();</pre></div>
<p>mysql_insert_id()が呼ばれる</p>
<!--v8f31580--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>サニタイズ処理  <a href="http://lily.la/modules/iPhone/index/xoops/tips#h6170144" title="h6170144"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=h6170144" title="Edit of  xoops/tips#h6170144"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#h6170144" /> </a></h3>
<p>某サイトからの引用</p>
<div><pre>主な使用方法：
$myts =&amp; MyTextSanitizer::getInstance();
$str = $myts-&gt;xoopsCodeDecode($str);
---使用推奨場所---（公式フォーラムでGIJOEさんに教えて頂きました。）
文字列型
POSTデータのDB保存（改行無し）：addSlashes($text)
POSTデータのDB保存（改行有り）：addSlashes($text)
POSTデータの通常表示（改行無し）：stripSlashesGPC(htmlSpecialChars($text))
POSTデータの通常表示（改行有り）：previewTarea($text, $html=0, $smiley=1,
$xcode=1, $image=1, $br=1)
POSTデータのテキストボックス内表示：stripSlashesGPC(htmlSpecialChars($text))
POSTデータの&lt;textarea&gt;内表示：stripSlashesGPC(htmlSpecialChars($text))
DB取得データの通常表示（改行無し）：htmlSpecialChars($text)
DB取得データの通常表示（改行有り）：displayTarea($text, $html=0, $smiley=1,
$xcode=1, $image=1, $br=1)
DB取得データのテキストボックス内表示：htmlSpecialChars($text)
DB取得データの&lt;textarea&gt;内表示：htmlSpecialChars($text)
DB取得データのDB保存（改行無し）：addSlashes($text)
DB取得データのDB保存（改行有り）：addSlashes($text)

数値型
POSTデータは全て：intval($num)　場合によってはis_numeric($num)で弾く
DB取得データは、何もしなくて良い

文字列型については、改行が有ればmakeTarea****を、無ければmakeTbox****を
そして、POSTデータのDB保存時は****Save、通常表示は****Preview、エレメント？内は
****PreviewInFormを
DB取得データの通常表示は****Show、エレメント？内は****Editと、関数名が解り易く
なっています。

makeT*とoops*は、deprecated（大いに非難されました。@Eciteエキサイト翻訳）との事
ですので、使用しない方が良いみ</pre></div>
<!--h6170144--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>自動採番（auto_increment）しているカラムの次の値を得る  <a href="http://lily.la/modules/iPhone/index/xoops/tips#g96fbd86" title="g96fbd86"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=g96fbd86" title="Edit of  xoops/tips#g96fbd86"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#g96fbd86" /> </a></h3>
<div><pre>$id = $xoopsDB-&gt;genId($xoopsDB-&gt;prefix('xxxx').'_uid_seq');</pre></div>
<p>実はこれ 0 しか返ってこない。</p>
<p>mysqldatabase.php の実装はこのようになってる。</p>
<div><pre>function genId($sequence)
{
    return 0; // will use auto_increment
}</pre></div>
<p>INSERT後にこれでIDを得る</p>
<div><pre>$uid = $xoopsDB-&gt;getInsertId();</pre></div>
<!--g96fbd86--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h2>ユーザ、グループ関係  <a href="http://lily.la/modules/iPhone/index/xoops/tips#kc6deefe" title="kc6deefe"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=kc6deefe" title="Edit of  xoops/tips#kc6deefe"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#kc6deefe" /> </a></h2>
<!--kc6deefe--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>現在のユーザIDを取ってくる  <a href="http://lily.la/modules/iPhone/index/xoops/tips#fccfd099" title="fccfd099"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=fccfd099" title="Edit of  xoops/tips#fccfd099"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#fccfd099" /> </a></h3>
<p>セッションの場合</p>
<div><pre>$uid = $_SESSION['xoopsUserId'];</pre></div>
<p>$xoopsUserオブジェクトから</p>
<div><pre>if (isset($xoopsUser)) {
  $uid = $xoopsUser-&gt;uid();
}</pre></div>
<p>ゲストユーザにはユーザIDはない。</p>
<!--fccfd099--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>ユーザ情報を得る  <a href="http://lily.la/modules/iPhone/index/xoops/tips#c8d07afc" title="c8d07afc"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=c8d07afc" title="Edit of  xoops/tips#c8d07afc"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#c8d07afc" /> </a></h3>
<div><pre>$member_handler =&amp; xoops_gethandler('member');
$user = $member_handler-&gt;getUser(ユーザID);</pre></div>
<!--c8d07afc--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>ユーザを追加する  <a href="http://lily.la/modules/iPhone/index/xoops/tips#o00e612e" title="o00e612e"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=o00e612e" title="Edit of  xoops/tips#o00e612e"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#o00e612e" /> </a></h3>
<p>準備中</p>
<!--o00e612e--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>ユーザ情報を変更する  <a href="http://lily.la/modules/iPhone/index/xoops/tips#l4fdda0e" title="l4fdda0e"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=l4fdda0e" title="Edit of  xoops/tips#l4fdda0e"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#l4fdda0e" /> </a></h3>
<p>準備中</p>
<!--l4fdda0e--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>ユーザを削除する  <a href="http://lily.la/modules/iPhone/index/xoops/tips#rdd2ffc7" title="rdd2ffc7"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=rdd2ffc7" title="Edit of  xoops/tips#rdd2ffc7"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#rdd2ffc7" /> </a></h3>
<p>準備中</p>
<!--rdd2ffc7--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>グループ情報を得る  <a href="http://lily.la/modules/iPhone/index/xoops/tips#e8e57e0b" title="e8e57e0b"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=e8e57e0b" title="Edit of  xoops/tips#e8e57e0b"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#e8e57e0b" /> </a></h3>
<p>現在のユーザのグループ情報を得る</p>
<div><pre>   $groups = $xoopsUser-&gt;groups();
   
   if (is_array($groups) &amp;&amp; isset($groups[0])) {
       $group_handler =&amp; xoops_gethandler('group');
  
       $g = $group_handler-&gt;get($groups[0]);
       $groupid     = $g-&gt;getVar('groupid');
       $name        = $g-&gt;getVar('name');
       $description = $g-&gt;getVar('description');
       $group_type  = $g-&gt;getVar('group_type');
   }</pre></div>
<p>準備中</p>
<!--e8e57e0b--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>グループを追加する  <a href="http://lily.la/modules/iPhone/index/xoops/tips#w0ccea19" title="w0ccea19"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=w0ccea19" title="Edit of  xoops/tips#w0ccea19"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#w0ccea19" /> </a></h3>
<p>準備中</p>
<!--w0ccea19--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>グループ情報を変更する  <a href="http://lily.la/modules/iPhone/index/xoops/tips#h31e9efd" title="h31e9efd"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=h31e9efd" title="Edit of  xoops/tips#h31e9efd"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#h31e9efd" /> </a></h3>
<p>準備中</p>
<!--h31e9efd--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>グループを削除する  <a href="http://lily.la/modules/iPhone/index/xoops/tips#g73cdf5b" title="g73cdf5b"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=g73cdf5b" title="Edit of  xoops/tips#g73cdf5b"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#g73cdf5b" /> </a></h3>
<p>準備中</p>
<!--g73cdf5b--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>メンバーハンドラー($member_handler)を得る  <a href="http://lily.la/modules/iPhone/index/xoops/tips#r5f43241" title="r5f43241"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=r5f43241" title="Edit of  xoops/tips#r5f43241"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#r5f43241" /> </a></h3>
<div><pre>$member_handler =&amp; xoops_gethandler('member');</pre></div>
<!--r5f43241--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>モジュールハンドラー($module_handler)を得る  <a href="http://lily.la/modules/iPhone/index/xoops/tips#d31d75ba" title="d31d75ba"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=d31d75ba" title="Edit of  xoops/tips#d31d75ba"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#d31d75ba" /> </a></h3>
<div><pre>$module_handler =&amp; xoops_gethandler('module');</pre></div>
<!--d31d75ba--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>まとめてユーザID、グループIDを取ってくる  <a href="http://lily.la/modules/iPhone/index/xoops/tips#g57e1532" title="g57e1532"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=g57e1532" title="Edit of  xoops/tips#g57e1532"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#g57e1532" /> </a></h3>
<div><pre>$member_handler =&amp; xoops_gethandler('member');

// ユーザIDをとってくる
$list = $member_handler-&gt;getUsers();

// グループIDをとってくる
$list = $member_handler-&gt;getGroups();</pre></div>
<!--g57e1532--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>ユーザの所属グループIDを取って来る  <a href="http://lily.la/modules/iPhone/index/xoops/tips#t6f9af6e" title="t6f9af6e"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=t6f9af6e" title="Edit of  xoops/tips#t6f9af6e"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#t6f9af6e" /> </a></h3>
<p>$_SESSION['xoopsUserGroups'] に入っている。</p>
<p>もしくは、</p>
<p>$arr = $xoopsUser-&gt;getGroups();</p>
<!--t6f9af6e--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>あるグループに属するユーザのIDを得る  <a href="http://lily.la/modules/iPhone/index/xoops/tips#sbb3ba33" title="sbb3ba33"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=sbb3ba33" title="Edit of  xoops/tips#sbb3ba33"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#sbb3ba33" /> </a></h3>
<div><pre>$membership_handler =&amp; xoops_gethandler('membership');
$userid_list = $membership_handler-&gt;getUsersByGroup( XOOPS_GROUP_USERS);</pre></div>
<!--sbb3ba33--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>プログラム的にユーザをグループに追加したい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#v66bafe1" title="v66bafe1"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=v66bafe1" title="Edit of  xoops/tips#v66bafe1"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#v66bafe1" /> </a></h3>
<div><pre>$member_handler-&gt;addUserToGroup($module_id, $uid)</pre></div>
<!--v66bafe1--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>プログラムの中で管理者メールアドレスを得る  <a href="http://lily.la/modules/iPhone/index/xoops/tips#mb70120b" title="mb70120b"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=mb70120b" title="Edit of  xoops/tips#mb70120b"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#mb70120b" /> </a></h3>
<div><pre>$mail = $xoopsConfig['adminmail']</pre></div>
<!--mb70120b--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h2>テーマ周り  <a href="http://lily.la/modules/iPhone/index/xoops/tips#n82dba9f" title="n82dba9f"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=n82dba9f" title="Edit of  xoops/tips#n82dba9f"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#n82dba9f" /> </a></h2>
<!--n82dba9f--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>ブラウザのタイトルバーの表示名を変えたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#d0a59404" title="d0a59404"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=d0a59404" title="Edit of  xoops/tips#d0a59404"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#d0a59404" /> </a></h3>
<p>システム設定メイン &#187;&#187; 一般設定から変更</p>
<p>モジュールの表示内容に合わせて変える</p>
<div><pre>$xoopsTpl-&gt;assgin('xoops_sitename', 'サイトタイトル'); 
$xoopsTpl-&gt;assgin('xoops_pagetitle', 'ページタイトル'); </pre></div>
<p>テーマこうなっている</p>
<div><pre>&lt;title&gt;&lt;{$xoops_sitename}&gt; - &lt;{$xoops_pagetitle}&gt;&lt;/title&gt;</pre></div>
<!--d0a59404--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>ブロック内で $xoopsModuleConfig を得る  <a href="http://lily.la/modules/iPhone/index/xoops/tips#a4bf7c35" title="a4bf7c35"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=a4bf7c35" title="Edit of  xoops/tips#a4bf7c35"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#a4bf7c35" /> </a></h3>
<div><pre>$module_handler =&amp; xoops_gethandler(’module’);
$config_handler =&amp; xoops_gethandler(’config’);

$basename = basename(dirname(dirname(__FILE__)));

$xoopsModule =&amp; $module_handler-&gt;getByDirname($basename);
$xoopsModuleConfig =&amp; $config_handler-&gt;getConfigsByCat(0,
$xoopsModule-&gt;getVar(’mid’));</pre></div>
<!--a4bf7c35--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h2>権限  <a href="http://lily.la/modules/iPhone/index/xoops/tips#y2464ffd" title="y2464ffd"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=y2464ffd" title="Edit of  xoops/tips#y2464ffd"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#y2464ffd" /> </a></h2>
<!--y2464ffd--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>今表示しているユーザが管理者グループに属しているか調べる  <a href="http://lily.la/modules/iPhone/index/xoops/tips#za19acb6" title="za19acb6"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=za19acb6" title="Edit of  xoops/tips#za19acb6"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#za19acb6" /> </a></h3>
<p>$GLOBALS['xoopsUserIsAdmin'] に 1 がセットされる。</p>
<p>また、$_SESSION['xoopsUserGroup'] に所属グループがセットされるので<br />
それで調べることもできる。</p>
<div><pre>if (is_array(XOOPS_GROUP_ADMIN, $_SESSION['xoopsUserGroups'])) {
   // 管理者グループに属している
} else {
   // 管理者グループに属していない
}</pre></div>
<p>またはユーザオブジェクトからグループのリストを取ってきて調べる</p>
<div><pre>$groups = $xoopsUser-&gt;groups();
if (in_array(XOOPS_GROUP_ADMIN, $groups)) {
 // 管理者グループに属している
} else {
 // 管理者グループに属していない
}</pre></div>
<!--za19acb6--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>ブロック管理権限があるか調べる  <a href="http://lily.la/modules/iPhone/index/xoops/tips#y2713b2e" title="y2713b2e"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=y2713b2e" title="Edit of  xoops/tips#y2713b2e"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#y2713b2e" /> </a></h3>
<div><pre>$sysperm_handler =&amp; xoops_gethandler('groupperm');
if (!$sysperm_handler-&gt;checkRight('system_admin', XOOPS_SYSTEM_BLOCK,
                                  $xoopsUser-&gt;getGroups()) {
  // ブロック管理権限がない
}</pre></div>
<!--y2713b2e--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>xxxxモジュールの読み込み権限があるか調べる  <a href="http://lily.la/modules/iPhone/index/xoops/tips#s01cef10" title="s01cef10"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=s01cef10" title="Edit of  xoops/tips#s01cef10"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#s01cef10" /> </a></h3>
<div><pre>$module =&amp; $module_handler-&gt;getByDirname( 'xxxx' ) ;
$sysperm_handler =&amp; xoops_gethandler('groupperm');
if ($sysperm_handler-&gt;checkRight('module_read', $module-&gt;mid(),
                                 $xoopsUser-&gt;getGroups()) {
  // exhibitions モジュールの読み込み権がある
}</pre></div>
<!--s01cef10--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>xxxxモジュールの管理権限があるか調べる  <a href="http://lily.la/modules/iPhone/index/xoops/tips#t0b6bc45" title="t0b6bc45"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=t0b6bc45" title="Edit of  xoops/tips#t0b6bc45"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#t0b6bc45" /> </a></h3>
<div><pre>$module =&amp; $module_handler-&gt;getByDirname( 'xxxx' ) ;
$sysperm_handler =&amp; xoops_gethandler('groupperm');
if ($sysperm_handler-&gt;checkRight('module_admin', $module-&gt;mid(),
$xoopsUser-&gt;getGroups()) {
  // exhibitions モジュールの管理権限がある
}</pre></div>
<!--t0b6bc45--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>登録ユーザグループが管理権限を持っているモジュールのIDを配列で返す  <a href="http://lily.la/modules/iPhone/index/xoops/tips#a0bfb3b0" title="a0bfb3b0"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=a0bfb3b0" title="Edit of  xoops/tips#a0bfb3b0"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#a0bfb3b0" /> </a></h3>
<div><pre>$moduleperm_handler =&amp; xoops_gethandler('groupperm');
$perm_array = $moduleperm_handler-&gt;getItemIds('module_admin', XOOPS_GROUP_USERS);</pre></div>
<!--a0bfb3b0--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>登録ユーザグループが読込権限を持っているモジュールのIDを配列で返す  <a href="http://lily.la/modules/iPhone/index/xoops/tips#m6bd214d" title="m6bd214d"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=m6bd214d" title="Edit of  xoops/tips#m6bd214d"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#m6bd214d" /> </a></h3>
<div><pre>$moduleperm_handler =&amp; xoops_gethandler('groupperm');
$perm_array = $moduleperm_handler-&gt;getItemIds('module_read', XOOPS_GROUP_USERS);</pre></div>
<!--m6bd214d--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>今表示しているモジュールの管理者か調べる  <a href="http://lily.la/modules/iPhone/index/xoops/tips#i95a42a7" title="i95a42a7"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=i95a42a7" title="Edit of  xoops/tips#i95a42a7"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#i95a42a7" /> </a></h3>
<div><pre>function is_module_admin() {
       global $xoopsUser;
       global $module_handler;

       if (! is_object($xoopsUser)) {
           return false;
       }

       // $mydirname はモジュールのディレクトリ名
       $module =&amp; $module_handler-&gt;getByDirname( $mydirname ) ;

       if( ! is_object( $module ) ) {
           die( &quot;invalid module dirname:&quot; . htmlspecialchars( $src_dirname ) )
;
       }
       $mid = $module-&gt;getvar( 'mid' ) ;

       return $xoopsUser-&gt;isAdmin($mid);
}</pre></div>
<!--i95a42a7--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>モジュールのグループの権限を調べる  <a href="http://lily.la/modules/iPhone/index/xoops/tips#m1e31312" title="m1e31312"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=m1e31312" title="Edit of  xoops/tips#m1e31312"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#m1e31312" /> </a></h3>
<p>次で得る</p>
<div><pre>// groupperm ハンドラーを得る
$gperm_handler =&amp; xoops_gethandler( 'groupperm' ) ;
// 権限を得る
$gm = $gperm_handler-&gt;checkRight( 'fischher_global' , 権限の番号（整数） , グループID , モジュールID )</pre></div>
<p>$gm が 1 なら権限あり。0 ならなし。</p>
<!--m1e31312--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h2>参考資料  <a href="http://lily.la/modules/iPhone/index/xoops/tips#k0f111fb" title="k0f111fb"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=k0f111fb" title="Edit of  xoops/tips#k0f111fb"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#k0f111fb" /> </a></h2>
<!--k0f111fb--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3><span>XOOPS<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=XOOPS&amp;refer=xoops%2Ftips" title="Edit of  XOOPS"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span> API のリファレンスが読みたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#ve431208" title="ve431208"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=ve431208" title="Edit of  xoops/tips#ve431208"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#ve431208" /> </a></h3>
<p>ここが参考になる</p>
<ul><li><a href="http://www.geocities.jp/toyprog/xoops_api/index.html" title="www.geocities.jp/toyprog/xoops_api/index.html">xoops_api</a></li></ul>
<!--ve431208--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h2>その他  <a href="http://lily.la/modules/iPhone/index/xoops/tips#e0f59876" title="e0f59876"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=e0f59876" title="Edit of  xoops/tips#e0f59876"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#e0f59876" /> </a></h2>
<!--e0f59876--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>画像のアップロードを行いたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#ke62aab9" title="ke62aab9"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=ke62aab9" title="Edit of  xoops/tips#ke62aab9"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#ke62aab9" /> </a></h3>
<p>通常のPHPの $_FILES を使ってアップロードを行ってもよいが、<br />
画像用のアップロードクラスがあるので使ってみる。</p>
<p>以下は waffle モジュールより抜粋</p>
<div><pre>include_once XOOPS_ROOT_PATH.'/class/uploader.php';
$uploader = new XoopsMediaUploader($updir, array('image/gif', 
                                                 'image/jpeg', 
                                                 'image/pjpeg', 
                                                 'image/x-png', 
                                                 'image/png'), 
                                   $maxsize, $maxx, $maxy);
$uploader-&gt;setAllowedExtensions(array('gif', 'jpeg', 'jpg', 'png'));

if ($uploader-&gt;fetchMedia($key)) {
    $uploader-&gt;setPrefix($this-&gt;get_mydirname() . '_image_');
    if ($uploader-&gt;upload()) {
    
        $f = $updir . $uploader-&gt;getSavedFileName();
        if (preg_match('/\.png$/', $uploader-&gt;getSavedFileName())) {
            $im = @imagecreatefrompng($f);
        } else if (preg_match('/\.gif$/', $uploader-&gt;getSavedFileName())) {
            $im = @imagecreatefromgif($f);
        } else if (preg_match('/\.jpg$/', $uploader-&gt;getSavedFileName()) ||
            preg_match('/\.jpeg$/', $uploader-&gt;getSavedFileName())) {
            $im = @imagecreatefromjpeg($f);
        }
 
        
        $x = imagesx($im); // 画像の横ドット数を得る
        $y = imagesy($im); // 画像の縦ドット数を得る
        $size = filesize($f); // ファイル容量を得る
       
        // ドット数、ファイル容量チェック
        if ($maxx &lt; $x) {
            $validate-&gt;set_error($key, $val['desc'] . ':エラーが発生しました(3)');
        } else if ($maxy &lt; $y) {
            $validate-&gt;set_error($key, $val['desc'] . ':エラーが発生しました(4)');
        } else if ($maxsize &lt; $size) {
            $validate-&gt;set_error($key, $val['desc'] . ':エラーが発生しました(5)');
        } else {
            $ar = array('path' =&gt; $uploader-&gt;getSavedFileName(),
                        'width' =&gt; $x,
                        'height' =&gt; $y,
                        'file_size' =&gt; $size
                       );
                       
            $y = $this-&gt;get_mydirname() . '_image.yml';
            $image = WaffleMAP::new_with_cache($y);
           
            $image-&gt;insert($ar);
           
            $post_data[$key] = $xoopsDB-&gt;getInsertId();
        }
    } else {
        $validate-&gt;set_error($key, $val['desc'] . ':エラーが発生しました(1) ' . 
                             $uploader-&gt;getErrors());
    }
} else {
    $validate-&gt;set_error($key, $val['desc'] . ':エラーが発生しました(2)');
}</pre></div>

<!--ke62aab9--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>YAMLを使いたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#e0701933" title="e0701933"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=e0701933" title="Edit of  xoops/tips#e0701933"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#e0701933" /> </a></h3>
<p>準備中</p>
<!--e0701933--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>XoopsGTicketとは？  <a href="http://lily.la/modules/iPhone/index/xoops/tips#ncc36146" title="ncc36146"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=ncc36146" title="Edit of  xoops/tips#ncc36146"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#ncc36146" /> </a></h3>
<p>調査中</p>
<!--ncc36146--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>コメントを使えるようにしたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#if58badc" title="if58badc"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=if58badc" title="Edit of  xoops/tips#if58badc"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#if58badc" /> </a></h3>
<p>準備中</p>
<!--if58badc--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>管理画面で設定できるようにしたい（config）  <a href="http://lily.la/modules/iPhone/index/xoops/tips#mfaa2ef6" title="mfaa2ef6"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=mfaa2ef6" title="Edit of  xoops/tips#mfaa2ef6"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#mfaa2ef6" /> </a></h3>
<p>準備中</p>
<!--mfaa2ef6--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>イベント通知したい（notification_handler）  <a href="http://lily.la/modules/iPhone/index/xoops/tips#f1c36d88" title="f1c36d88"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=f1c36d88" title="Edit of  xoops/tips#f1c36d88"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#f1c36d88" /> </a></h3>
<p>ここのイベント通知機能を参照。</p>
<ul><li>[[TECH/xoops_version.php を作ってみよう:<a href="http://xoops.sourceforge.jp/wiki" title="xoops.sourceforge.jp/wiki">http://xoops.sourceforge.jp/wiki</a> /xoops2/index.php?cmd=read&amp;page=TECH%2Fxoops_version.php%20%A4%F2%BA%EE%A4%C3%A4%C6%A4%DF%A4%E8%A4%A6]]</li></ul>
<p>ハマッたのが、イベント通知はイベントを起こしたユーザには通知されないのを勘違いして通知が来ないと思ったこと。</p>
<!--f1c36d88--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>XoopsThemeFormを使いたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#jac847ca" title="jac847ca"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=jac847ca" title="Edit of  xoops/tips#jac847ca"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#jac847ca" /> </a></h3>
<p>こんな感じ。調べていけばわかる？</p>
<div><pre>function item_make_form()
{
    $form = new XoopsThemeForm(_MD_A_CREATENEWITEM, &quot;itemmakeform&quot;, 
                               &quot;item.php&quot;, &quot;post&quot;);
    $form-&gt;addElement(new XoopsFormText(_MD_A_ITEMTITLE, &quot;name&quot;, 50, 100, &quot;&quot;),
                      true);
    $form-&gt;addElement(new XoopsFormText(_MD_A_ITEMORDER, &quot;iorder&quot;, 5, 10, &quot;0&quot;),
                      false);
    $button = new XoopsFormElementTray('','');
    $button-&gt;addElement(new XoopsFormHidden(&quot;mode&quot;, &quot;item_make&quot;));
    $button-&gt;addElement(new XoopsFormButton('', 'submit', _MD_A_CREATENEWITEM, 
                        'submit'));
    $form-&gt;addElement($button);
    $form-&gt;display();
}</pre></div>
<!--jac847ca--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>ブロックを作りたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#xf472091" title="xf472091"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=xf472091" title="Edit of  xoops/tips#xf472091"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#xf472091" /> </a></h3>
<p>準備中</p>
<!--xf472091--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3><span>XOOPS<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=XOOPS&amp;refer=xoops%2Ftips" title="Edit of  XOOPS"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span>標準の検索で検索きるようにしたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#j7e22042" title="j7e22042"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=j7e22042" title="Edit of  xoops/tips#j7e22042"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#j7e22042" /> </a></h3>
<p>xoops_version.php に以下のように追記</p>
<div><pre>$modversion['hasSearch'] = 1;
$modversion['search']['file'] = &quot;include/search.inc.php&quot;;
$modversion['search']['func'] = &quot;fischher_search&quot;;</pre></div>
<p><span>PHP<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=PHP&amp;refer=xoops%2Ftips" title="Edit of  PHP"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span>ファイルと関数名を指定する。</p>
<div><pre>function fischher_search($queryarray, $andor, $limit, $offset, $userid)
{
    global $xoopsDB;
    
    $sql = &quot;SELECT id, name, description, reg_time, reg_user FROM &quot;
    $sql .= $xoopsDB-&gt;prefix(&quot;fischher_schedule&quot;).&quot; WHERE 1 &quot;;
    if ( $userid != 0 ) {
        $sql .= &quot; AND reg_user=&quot;.intval($userid).&quot; &quot;;
    }
   if ( is_array($queryarray) &amp;&amp; $count = count($queryarray) ) {
       $sql .= &quot; AND ((name LIKE '%$queryarray[0]%' OR &quot;;
       $sql .= &quot;description LIKE '%$queryarray[0]%')&quot;;
       for($i=1;$i&lt;$count;$i++){
           $sql .= &quot; $andor &quot;;
           $sql .= &quot;(name LIKE '%$queryarray[$i]%' OR &quot;;
           $sql .= &quot;description LIKE '%$queryarray[$i]%')&quot;;
       }
       $sql .= &quot;) &quot;;
   }
   $sql .= &quot;ORDER BY start_time DESC&quot;;

   $result = $xoopsDB-&gt;query($sql,$limit,$offset);
   $ret = array();
   $i = 0;
   while($myrow = $xoopsDB-&gt;fetchArray($result)){
       $ret[$i]['link'] = &quot;view.php?sid=&quot;.$myrow['id'].&quot;&quot;; // リンク先URL
       $ret[$i]['title'] = $myrow['name'];                 // 見出し
       $ret[$i]['time'] = $myrow['reg_time'];              // 時刻
       $ret[$i]['uid'] = $myrow['reg_user'];               // 投稿したユーザID
       $i++;
   }
    
   return $ret;
}</pre></div>
<!--j7e22042--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>管理画面を追加したい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#h3e8a1c2" title="h3e8a1c2"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=h3e8a1c2" title="Edit of  xoops/tips#h3e8a1c2"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#h3e8a1c2" /> </a></h3>
<p>準備中</p>
<!--h3e8a1c2--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>メニューにサブメニューを追加したい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#sce2b182" title="sce2b182"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=sce2b182" title="Edit of  xoops/tips#sce2b182"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#sce2b182" /> </a></h3>
<p>モジュールの xoops_version.php に以下を追加</p>
<div><pre>$modversion['sub'][1]['name'] = _MI_FISCHHER_NEW_SCHEDULE;
$modversion['sub'][1]['url'] = 'regist.php';
$modversion['sub'][2]['name'] = _MI_FISCHHER_MEETINGROOM_SCHEDULE;
$modversion['sub'][2]['url'] = 'meetingroom.php';</pre></div>
<!--sce2b182--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>バッチ処理プログラム等で<span>XOOPS<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=XOOPS&amp;refer=xoops%2Ftips" title="Edit of  XOOPS"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span>の設定を読み込みたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#k43b1328" title="k43b1328"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=k43b1328" title="Edit of  xoops/tips#k43b1328"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#k43b1328" /> </a></h3>
<p><span>XOOPS<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=XOOPS&amp;refer=xoops%2Ftips" title="Edit of  XOOPS"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span>の重い初期化プロセスは読まないでDB等の設定だけ読みたい場合、このようにするとよい。</p>
<div><pre>// xoops の common.php は読まない
$xoopsOption['nocommon'] = 1;

require('mainfile.php');
</pre></div>
<p>定数の<span>XOOPS<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=XOOPS&amp;refer=xoops%2Ftips" title="Edit of  XOOPS"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span>_DB_HOST、<span>XOOPS<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=XOOPS&amp;refer=xoops%2Ftips" title="Edit of  XOOPS"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span>_DB_NAME、<span>XOOPS<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=XOOPS&amp;refer=xoops%2Ftips" title="Edit of  XOOPS"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span>_DB_USER、<br />
<span>XOOPS<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=XOOPS&amp;refer=xoops%2Ftips" title="Edit of  XOOPS"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span>_DB_PASS 等がセットされる</p>
<!--k43b1328--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>ファイルをダウンロードさせたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#y4f35855" title="y4f35855"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=y4f35855" title="Edit of  xoops/tips#y4f35855"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#y4f35855" /> </a></h3>
<p><span>XOOPS<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=XOOPS&amp;refer=xoops%2Ftips" title="Edit of  XOOPS"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span>に限った話じゃないが、以下のようにしてリンク後すぐダウンロードを<br />
実現できる。</p>
<div><pre>$size_file = strlen($s);
header(&quot;Content-Type:application/octet-stream; charset=Shift-JIS&quot;);
header(&quot;Content-Disposition:attachment; filename=download.csv&quot;);
header(&quot;Content-Transfer-Encoding: binary&quot;); 
header(&quot;Content-Length: $size_file&quot;);
header(&quot;Pragma: no-cache&quot;);
header(&quot;Expires: 0&quot;);

print $s;
exit();</pre></div>
<!--y4f35855--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>プログラムの中でサイト名を得る  <a href="http://lily.la/modules/iPhone/index/xoops/tips#s0305d42" title="s0305d42"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=s0305d42" title="Edit of  xoops/tips#s0305d42"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#s0305d42" /> </a></h3>
<div><pre>$sitename = $xoopsConfig['sitename'] </pre></div>
<!--s0305d42--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h2>小技  <a href="http://lily.la/modules/iPhone/index/xoops/tips#n59c285c" title="n59c285c"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=n59c285c" title="Edit of  xoops/tips#n59c285c"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#n59c285c" /> </a></h2>
<!--n59c285c--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>assert() を活用する  <a href="http://lily.la/modules/iPhone/index/xoops/tips#df0987a4" title="df0987a4"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=df0987a4" title="Edit of  xoops/tips#df0987a4"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#df0987a4" /> </a></h3>
<p><span>XOOPS<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=XOOPS&amp;refer=xoops%2Ftips" title="Edit of  XOOPS"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span> に限った話じゃないけど assert() の活用はプログラムの信頼性向上に有効。<br />
引数に結果が true になるようにチェックしたい条件を書く。<br />
true の場合はなにもおきない。false の場合は warning が出る。<br />
（Cだけどlinuxカーネルや MySQL、apache、python などなどのソースでも assert() が<br />
活用されている。使い方も参考になる）</p>
<p>assert_options(ASSERT_ACTIVE, 0)； とするとチェックを無効にできる。</p>
<p>使い方：</p>
<p>引数のチェック</p>
<div><pre>function foo($bar, $baz)
{
    assert(is_numeric($bar));
    assert(0 &lt; $bar);
    
    上記は引数チェックを行っている。
    $bar が整数以外、または 0 以下だった場合に warning が出る。
    
    // 実際の処理
}</pre></div>
<p>分岐のチェック</p>
<div><pre>if ($baz == 1) {
    // なにかする
} else if ($bar == $baz) {
    // なにかする
} else {
    // 仕様上ありえない分岐。assert を出す。
    assert(0);
}</pre></div>
<!--df0987a4--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h2>未整理  <a href="http://lily.la/modules/iPhone/index/xoops/tips#m4587ea0" title="m4587ea0"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=m4587ea0" title="Edit of  xoops/tips#m4587ea0"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#m4587ea0" /> </a></h2>
<!--m4587ea0--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>更新後のリダイレクト画面を出したい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#b6ec63a2" title="b6ec63a2"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=b6ec63a2" title="Edit of  xoops/tips#b6ec63a2"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#b6ec63a2" /> </a></h3>
<p>以下で<span>XOOPS<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=XOOPS&amp;refer=xoops%2Ftips" title="Edit of  XOOPS"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span>ではお馴染みの、メッセージを表示してリダイレクトする画面を表示する。</p>
<div><pre>   redirect_header('index.php',5,_US_ACTKEYNOT);

   引数：
       リダイレクト先
       表示する秒数
       表示するメッセージ</pre></div>
<!--b6ec63a2--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>登録ユーザにメール、もしくはPMを送りたい  <a href="http://lily.la/modules/iPhone/index/xoops/tips#x1f278b8" title="x1f278b8"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=xoops%2Ftips&amp;paraid=x1f278b8" title="Edit of  xoops/tips#x1f278b8"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  xoops/tips#x1f278b8" /> </a></h3>
<p>register.php より</p>
<div><pre>$xoopsMailer =&amp; getMailer();
$xoopsMailer-&gt;setTemplate('register.tpl'); // メール本文のテンプレート
$xoopsMailer-&gt;assign('SITENAME', $xoopsConfig['sitename']);
$xoopsMailer-&gt;assign('ADMINMAIL', $xoopsConfig['adminmail']);
$xoopsMailer-&gt;assign('SITEURL', XOOPS_URL.&quot;/&quot;);
$xoopsMailer-&gt;setToUsers(new XoopsUser($newid));
$xoopsMailer-&gt;setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer-&gt;setFromName($xoopsConfig['sitename']);
$xoopsMailer-&gt;setSubject(sprintf(_US_USERKEYFOR, $uname));
if ( !$xoopsMailer-&gt;send() ) {
    // 送信成功
} else {
    // 送信失敗
}</pre></div><!--x1f278b8--></div>


 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?xoops%2Ftips</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?lilylabo%E3%81%AB%E5%8F%82%E5%8A%A0%E3%81%99%E3%82%8B">
 <title>lilylaboに参加する</title>
 <link>http://lily.la/modules/iPhone/index/lilylabo%E3%81%AB%E5%8F%82%E5%8A%A0%E3%81%99%E3%82%8B</link>
 <dc:date>2009-05-18T00:19:34+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>lilylaboに参加する
&amp;nbsp;
lilylaboの活動    
少しだけlilylaboの行っている活動をここで紹介します。
lilylaboはNPO、つまり非営利活動目的の組織です。
活動内容の柱になっているのは、「情報の発信」と「情報の収集」です。
そして、これらの活動から得られた知識・経験を元に様々なサービスの提供を行っています。
数えだすときりがありませんが、一つの例として、ホームページの製作があります。
私たちは多種多様な専門知識を持ち寄った、オールインワンなサービスを提供す</description>
 <content:encoded><![CDATA[
 <dl><dt>Changes</dt><dd><p><a href="http://register.php" title="register.php">lilylaboに参加する</a></p>
<div>&nbsp;</div>
<div>
<h2>lilylaboの活動  <a href="http://lily.la/modules/iPhone/index/lilylabo%E3%81%AB%E5%8F%82%E5%8A%A0%E3%81%99%E3%82%8B#l1b783e9" title="l1b783e9"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=lilylabo%E3%81%AB%E5%8F%82%E5%8A%A0%E3%81%99%E3%82%8B&amp;paraid=l1b783e9" title="lilylaboに参加する#l1b783e9 の編集"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="lilylaboに参加する#l1b783e9 の編集" /> </a></h2>
<p>少しだけlilylaboの行っている活動をここで紹介します。</p>
<p>lilylaboはNPO、つまり非営利活動目的の組織です。</p>
<p>活動内容の柱になっているのは、「情報の発信」と「情報の収集」です。<br />
そして、これらの活動から得られた知識・経験を元に様々なサービスの提供を行っています。</p>
<p>数えだすときりがありませんが、一つの例として、ホームページの製作があります。</p>
<p>私たちは多種多様な専門知識を持ち寄った、オールインワンなサービスを提供することができます。<br />
ヒアリングから企画提案、コンサルティング、デザイン製作、コンテンツ作成、システム構築、ドメインの取得と管理、サーバの契約代行又はホスティング、運用マニュアルの整備、サイトの更新、SEO・SEMの実施、アクセス解析、リスティング広告の最適化、効果測定、大きく分類してもこれだけの専門分野にわたる確かな知識と技術を私たちは蓄積しています。こうした技術をクライアントのニーズに合わせ、最高の状態で提供しています。</p>
<p>私たちのこうした活動の目的は、Webの発展。そして。もう一つ大きな目的があります。Webの世界への入り口を大きく開く事です。</p>
<p>広く開かれたWebの世界の普及によって、更なるWebの発展に繋がると私たちは信じています。<br /></p><!--l1b783e9--></div></dd></dl><hr /><p><span style="font-size:12px;line-height:130%;">lilylaboではWebに関わる様々な活動を行っています。 </span></p>
<p><span style="font-size:12px;line-height:130%;"> あなたがこのページを閲覧しているという事は、私たちの活動に興味を持ったということですね。 <br /></span><span style="font-size:12px;line-height:130%;">その興味を、多くの人たちに役立ててみてはいかがでしょう？</span></p>
<p><span style="font-size:12px;line-height:130%;">  恐らくあなたは多くの情報をWeb上から収集して、多いに人生に役立ててきた事でしょう。<br />今度は、あなたの情報をWebで発信して、たくさんの人たちの生活をより豊かなものにしていく手助けをしてみませんか？ </span></p>
<p><span style="font-size:12px;line-height:130%;"> 大げさに考える必要はありません。ちょっとしたことでもいいのです。<br />例えば、lilylaboにはたくさんのドキュメントが蓄積されています。しかし、そのすべては完璧ではありません。<br /></span><span style="font-size:12px;line-height:130%;"> そこで、あなたがそれらを読んでミスに気づいたり、もっとわかりやすい表現を見つけたときに、ちょっとだけ編集してみてはいかがですか。きっと多くの人々があなたの編集した文章から、幸せを手に入れる事でしょう。</span></p>
<p><span style="font-size:12px;line-height:130%;">  例えば、あなたが興味を持ったブログがあったとします。そこに多くの人にとって有益な情報があるのでしたら、是非lilylaboで紹介しましょう。<br />あなたの発信した情報を読んだ人も、そのブログを書いた人も、小さな幸せが訪れる事でしょう。  こんな世界に少しでも興味がある方。こちらから私たちの仲間に是非加わりましょう。 </span></p>
<p><a href="http://register.php" title="register.php">lilylaboに参加する</a></p>
<div>&nbsp;</div>
<div>
<h2>lilylaboの活動  <a href="http://lily.la/modules/iPhone/index/lilylabo%E3%81%AB%E5%8F%82%E5%8A%A0%E3%81%99%E3%82%8B#l1b783e9" title="l1b783e9"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=lilylabo%E3%81%AB%E5%8F%82%E5%8A%A0%E3%81%99%E3%82%8B&amp;paraid=l1b783e9" title="Edit of  lilylaboに参加する#l1b783e9"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  lilylaboに参加する#l1b783e9" /> </a></h2>
<p>少しだけlilylaboの行っている活動をここで紹介します。</p>
<p>lilylaboはNPO、つまり非営利活動目的の組織です。</p>
<p>活動内容の柱になっているのは、「情報の発信」と「情報の収集」です。<br />
そして、これらの活動から得られた知識・経験を元に様々なサービスの提供を行っています。</p>
<p>数えだすときりがありませんが、一つの例として、ホームページの製作があります。</p>
<p>私たちは多種多様な専門知識を持ち寄った、オールインワンなサービスを提供することができます。<br />
ヒアリングから企画提案、コンサルティング、デザイン製作、コンテンツ作成、システム構築、ドメインの取得と管理、サーバの契約代行又はホスティング、運用マニュアルの整備、サイトの更新、SEO・SEMの実施、アクセス解析、リスティング広告の最適化、効果測定、大きく分類してもこれだけの専門分野にわたる確かな知識と技術を私たちは蓄積しています。こうした技術をクライアントのニーズに合わせ、最高の状態で提供しています。</p>
<p>私たちのこうした活動の目的は、Webの発展。そして。もう一つ大きな目的があります。Webの世界への入り口を大きく開く事です。</p>
<p>広く開かれたWebの世界の普及によって、更なるWebの発展に繋がると私たちは信じています。<br /></p><!--l1b783e9--></div>


 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?lilylabo%E3%81%AB%E5%8F%82%E5%8A%A0%E3%81%99%E3%82%8B</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?Bookmark%2Fdeveloper">
 <title>Bookmark/developer</title>
 <link>http://lily.la/modules/iPhone/index/Bookmark/developer</link>
 <dc:date>2009-05-17T20:52:57+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>fladdict
カメラアプリなどを製作されています。
某開発者の雑記帳
家計簿(キャッシュフロー)アプリを製作されています。&amp;#182;
公式サイト    
iPhoneデベロッパプログラム(日本語)
iPhone Dev Center
iPhone Dev Center(日本語)
日本語に翻訳されたドキュメントが公開されています。情報量はまだまだ貧弱ですが、今後に期待。
iPhoneアプリケーションプログラミングガイド
情報系サイト    
iPhone-Dev
xoops製の情報サイト
i</description>
 <content:encoded><![CDATA[
 <dl><dt>Changes</dt><dd><ul><li><a href="http://fladdict.net/blog/" title="fladdict.net/blog/">fladdict</a>
<ul><li>カメラアプリなどを製作されています。</li></ul></li>
<li><a href="http://d.hatena.ne.jp/tmurakam/" title="d.hatena.ne.jp/tmurakam/">某開発者の雑記帳</a>
<ul><li>家計簿(キャッシュフロー)アプリを製作されています。</li></ul></li></ul></dd></dl><hr /><div>
<h3>公式サイト  <a href="http://lily.la/modules/iPhone/index/Bookmark/developer#hc650c62" title="hc650c62"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=Bookmark%2Fdeveloper&amp;paraid=hc650c62" title="Edit of  Bookmark/developer#hc650c62"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  Bookmark/developer#hc650c62" /> </a></h3>
<ul><li><a href="http://developer.apple.com/jp/iphone/program/" title="developer.apple.com/jp/iphone/program/">iPhoneデベロッパプログラム(日本語)</a></li>
<li><a href="http://developer.apple.com/iphone/index.action" title="developer.apple.com/iphone/index.action">iPhone Dev Center</a></li>
<li><a href="http://developer.apple.com/jp/iphone/library/japanese.html" title="developer.apple.com/jp/iphone/library/japanese.html">iPhone Dev Center(日本語)</a>
<ul><li>日本語に翻訳されたドキュメントが公開されています。情報量はまだまだ貧弱ですが、今後に期待。</li></ul></li>
<li><a href="http://developer.apple.com/jp/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html" title="developer.apple.com/jp/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html">iPhoneアプリケーションプログラミングガイド</a></li></ul>
<!--hc650c62--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>情報系サイト  <a href="http://lily.la/modules/iPhone/index/Bookmark/developer#t1d32e8f" title="t1d32e8f"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=Bookmark%2Fdeveloper&amp;paraid=t1d32e8f" title="Edit of  Bookmark/developer#t1d32e8f"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  Bookmark/developer#t1d32e8f" /> </a></h3>
<ul><li><a href="http://iphone-dev.jp/" title="iphone-dev.jp/">iPhone-Dev</a>
<ul><li>xoops製の情報サイト</li></ul></li>
<li><a href="http://wiki.sohaya.com/" title="wiki.sohaya.com/">iPhone 3G DevWiki</a>
<ul><li>iPhoneのWebアプリに特化したwiki情報サイト</li></ul></li></ul>
<!--t1d32e8f--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>開発者ブログ  <a href="http://lily.la/modules/iPhone/index/Bookmark/developer#h3496412" title="h3496412"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=Bookmark%2Fdeveloper&amp;paraid=h3496412" title="Edit of  Bookmark/developer#h3496412"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  Bookmark/developer#h3496412" /> </a></h3>
<ul><li><a href="http://fladdict.net/blog/" title="fladdict.net/blog/">fladdict</a>
<ul><li>カメラアプリなどを製作されています。</li></ul></li>
<li><a href="http://d.hatena.ne.jp/tmurakam/" title="d.hatena.ne.jp/tmurakam/">某開発者の雑記帳</a>
<ul><li>家計簿(キャッシュフロー)アプリを製作されています。</li></ul></li></ul><!--h3496412--></div>


 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?Bookmark%2Fdeveloper</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?Bookmark">
 <title>Bookmark</title>
 <link>http://lily.la/modules/iPhone/index/Bookmark</link>
 <dc:date>2009-05-17T20:17:19+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>#navi(Bookmark): No child page like: Bookmark/Foo&amp;#182;iPhone関連のブックマークです。
 Bookmark&amp;#8203;/developer
</description>
 <content:encoded><![CDATA[
 <dl><dt>Changes</dt><dd>#navi(<span>Bookmark</span>): No child page like: <span>Bookmark</span>/Foo</dd></dl><hr /><p>iPhone関連のブックマークです。</p>
<ul> <li><span><span>Bookmark</span></span>/<a href="http://lily.la/modules/iPhone/index/Bookmark/developer" title="Bookmark/developer (5h)">developer</a></li></ul>

 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?Bookmark</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?Welcome">
 <title>Welcome</title>
 <link>http://lily.la/modules/iPhone/</link>
 <dc:date>2009-05-17T19:51:30+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>
対象読者    
フィードバック    &amp;#182;
はじめに  
この文書の目的は、デベロッパの皆さんにiPhoneアプリの技術情報を広く開示することです。
よりすばらしいアプリの開発への貢献や、より多くの人たちにiPhoneアプリの開発に興味を持ってもらえる事を目指しています。
対象読者  
この文書は、iPhoneのアプリを開発しようとしている、初心者および経験者のiPhone OS開発者(デベロッパ)を対象としています。
この文章におけるデベロッパとは、とても広義な開発者を指し、ギーク</description>
 <content:encoded><![CDATA[
 <dl><dt>Changes</dt><dd><div>
<h3>対象読者  <a href="http://lily.la/modules/iPhone/index/Welcome#p9ddbd8d" title="p9ddbd8d"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=Welcome&amp;paraid=p9ddbd8d" title="Welcome#p9ddbd8d の編集"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Welcome#p9ddbd8d の編集" /> </a></h3>
<!--p9ddbd8d--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>フィードバック  <a href="http://lily.la/modules/iPhone/index/Welcome#sf72d275" title="sf72d275"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=Welcome&amp;paraid=sf72d275" title="Welcome#sf72d275 の編集"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Welcome#sf72d275 の編集" /> </a></h3><!--sf72d275--></div></dd></dl><hr /><div>
<h3>はじめに  <a href="http://lily.la/modules/iPhone/#tcd0e13a" title="tcd0e13a"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a></h3>
<p>この文書の目的は、デベロッパの皆さんにiPhoneアプリの技術情報を広く開示することです。</p>
<p>よりすばらしいアプリの開発への貢献や、より多くの人たちにiPhoneアプリの開発に興味を持ってもらえる事を目指しています。</p>
<!--tcd0e13a--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>対象読者  <a href="http://lily.la/modules/iPhone/#p9ddbd8d" title="p9ddbd8d"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a></h3>
<p>この文書は、iPhoneのアプリを開発しようとしている、初心者および経験者のiPhone OS開発者(デベロッパ)を対象としています。</p>
<p>この文章におけるデベロッパとは、とても広義な開発者を指し、ギークな技術者のみでなく、なんとなくアプリを作ってみたいと思っている、プログラミング経験０の初心者も含みます。</p>
<!--p9ddbd8d--></div>
<div>
<div><img src="http://lily.la/modules/iPhone/skin/loader.php?src=arrow_up.png" alt="Page Top" width="16" height="16" /></div><h3>フィードバック  <a href="http://lily.la/modules/iPhone/#sf72d275" title="sf72d275"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a></h3>
<p>この文章の内容に関するフィードバックは、下記フォームからお願いします。</p>
<p>より行動的な方は、lilylaboに会員登録することで、直接文章の内容を編集したり、新しい文章を作成する事ができます。詳しくは「<a href="http://lily.la/modules/iPhone/index/lilylabo%E3%81%AB%E5%8F%82%E5%8A%A0%E3%81%99%E3%82%8B" title="lilylaboに参加する (1h)">lilylaboに参加する</a>」をご覧ください。</p>
<div>&nbsp;</div>
<p>lilylaboは、これらの情報を通し、iPhoneの普及・発展に貢献し、モバイルライフの向上を目指しています。</p><!--sf72d275--></div>


 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?Welcome</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?development%2Fsound">
 <title>development/sound</title>
 <link>http://lily.la/modules/iPhone/index/development/sound</link>
 <dc:date>2009-05-17T19:06:09+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>コマンドラインの使い方がわからない方や、ものぐさな方にはこちらがおすすめです。&amp;#182;
マウス操作だけで音声データを簡単変換してくれるツール&amp;#182;iPhone OSに推奨される高品質のオーディオフォーマットは、CAFファイルとしてパッケージ化されている16ビット、リトルエンディアン、リニアPCMです。
オーディオファイルをこのフォーマットに変換するには、Mac OS Xのコマンドラインでafconvertツールを使用します。
/usr/bin/afconvert -f caff -d </description>
 <content:encoded><![CDATA[
 <dl><dt>Changes</dt><dd><p>コマンドラインの使い方がわからない方や、ものぐさな方にはこちらがおすすめです。<br /></p>&#182;<!--ADD_TEXT_SEP-->
<p><a href="http://lily.la/modules/iPhone/index/tool/sound/Max" title="tool/sound/Max (16m)">マウス操作だけで音声データを簡単変換してくれるツール</a></p></dd></dl><hr /><p>iPhone OSに推奨される高品質のオーディオフォーマットは、CAFファイルとしてパッケージ化されている16ビット、リトルエンディアン、リニアPCMです。</p>
<p>オーディオファイルをこのフォーマットに変換するには、Mac OS Xのコマンドラインでafconvertツールを使用します。</p>
<div><pre>/usr/bin/afconvert -f caff -d LEI16 {INPUT} {OUTPUT}</pre></div>
<p>コマンドラインの使い方がわからない方や、ものぐさな方にはこちらがおすすめです。<br />
<a href="http://lily.la/modules/iPhone/index/tool/sound/Max" title="tool/sound/Max (7h)">マウス操作だけで音声データを簡単変換してくれるツール</a></p>
<div>&nbsp;</div>
<p>また、圧縮された複数のサウンドを同時に再生する必要がある場合、IMA/ADPCMオーディオ(IMA4)フォーマットを使用します。
圧縮された単一のサウンドを再生する必要がある場合、IMA4に加えて、ALAC (Apple Lossless)、AAC、またはMP3のいずれかのオーディオフォーマットを使用できます。</p>

 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?development%2Fsound</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?development">
 <title>development</title>
 <link>http://lily.la/modules/iPhone/index/development</link>
 <dc:date>2009-05-17T18:51:52+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>iPhoneアプリ開発者向けの技術情報です。
#navi(development): No child page like: development/Foo&amp;#182;iPhoneアプリ開発者向けの技術情報です。
 development&amp;#8203;/sound
</description>
 <content:encoded><![CDATA[
 <dl><dt>Changes</dt><dd><p>iPhoneアプリ開発者向けの技術情報です。</p>
#navi(<span>development</span>): No child page like: <span>development</span>/Foo</dd></dl><hr /><p>iPhoneアプリ開発者向けの技術情報です。</p>
<ul> <li><span><span>development</span></span>/<a href="http://lily.la/modules/iPhone/index/development/sound" title="development/sound (7h)">sound</a></li></ul>

 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?development</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?tool%2Fsound%2FMax">
 <title>tool/sound/Max</title>
 <link>http://lily.la/modules/iPhone/index/tool/sound/Max</link>
 <dc:date>2009-05-17T18:49:10+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>ドラッグ＆ドロップだけで、手軽にiPhone用のサウンドデータに変換できます。
http://sbooth.org/Max/&amp;#182;iPhone用に音声データを変換するソフトです。
ドラッグ＆ドロップだけで、手軽にiPhone用のサウンドデータに変換できます。
http://sbooth.org/Max/
</description>
 <content:encoded><![CDATA[
 <dl><dt>Changes</dt><dd><p>ドラッグ＆ドロップだけで、手軽にiPhone用のサウンドデータに変換できます。
<a href="http://sbooth.org/Max/" title="sbooth.org/Max/">http://sbooth.org/Max/</a></p></dd></dl><hr /><p>iPhone用に音声データを変換するソフトです。</p>
<p>ドラッグ＆ドロップだけで、手軽にiPhone用のサウンドデータに変換できます。
<a href="http://sbooth.org/Max/" title="sbooth.org/Max/">http://sbooth.org/Max/</a></p>

 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?tool%2Fsound%2FMax</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?tool">
 <title>tool</title>
 <link>http://lily.la/modules/iPhone/index/tool</link>
 <dc:date>2009-05-17T18:42:56+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>iPhoneアプリ開発に必要なものや、あると便利なものをピックアップします。
 tool&amp;#8203;/sound&amp;#8203;/Max
</description>
 <content:encoded><![CDATA[
 <p>iPhoneアプリ開発に必要なものや、あると便利なものをピックアップします。</p>
<ul> <li><span>tool</span>/<span>sound<a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=tool%2Fsound" title="Edit of  tool/sound"><img src="http://lily.la/modules/iPhone/image/paraedit.png" alt="Edit" height="9" width="9" /></a></span>/<a href="http://lily.la/modules/iPhone/index/tool/sound/Max" title="tool/sound/Max (7h)">Max</a></li></ul>

 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?tool</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?word%2FObjective-C%2Fclass">
 <title>word/Objective-C/class</title>
 <link>http://lily.la/modules/iPhone/index/word/Objective-C/class</link>
 <dc:date>2009-05-17T18:34:09+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>前述の例のMyClassの実装を示します。クラス宣言と同様、クラス実装は2つのコンパイラディレクティブによって識
別されます。ここでは、@implementationと@endです。これらのディレクティブは、囲まれているメソッドと対応するクラスをコンパイラが関連付けるために必要な、範囲情報となります。したがってメソッドの定義は、コードブロックが含まれること以外は、インターフェイスでの対応する宣言と一致します。
変数にオブジェクトを格納するときには、必ずポインタ型を使います。Objective-C</description>
 <content:encoded><![CDATA[
 <dl><dt>Changes</dt><dd><p>前述の例のMyClassの実装を示します。クラス宣言と同様、クラス実装は2つのコンパイラディレクティブによって識
別されます。ここでは、@implementationと@endです。これらのディレクティブは、囲まれているメソッドと対応するクラスをコンパイラが関連付けるために必要な、範囲情報となります。したがってメソッドの定義は、コードブロックが含まれること以外は、インターフェイスでの対応する宣言と一致します。</p>
<p><img src="http://lily.la/modules/iPhone/gate.php?way=ref&amp;_nodos&amp;_noumb&amp;page=word%2FObjective-C%2Fclass&amp;src=%E3%83%94%E3%82%AF%E3%83%81%E3%83%A3%203.png" alt="ピクチャ 3.png" title="ピクチャ 3.png, SIZE:672x413(94.7KB)" width="638" height="392" width="638" height="392" /></p>
<p>変数にオブジェクトを格納するときには、必ずポインタ型を使います。Objective-Cでは、オブジェクトを含んだ変数に対する強い型定義と弱い型定義の両方をサポートしています。強く型定義されたポインタには、変数の型宣言にクラス名が含まれます。弱く型定義されたポインタは、代わりにオブジェクトに対して型idを使います。コレクション内のオブジェクトの正確な型が不明な場合があるコレクションクラスなどには、弱く型定義されたポインタが頻繁に使われます。強く型定義された言語を使い慣れている方は、弱く型定義された変数を使うと問題が生じるのではないかと思われるかもしれませんが、弱く型定義された変数は、実際には非常に柔軟性が高く、Objective-Cプログラムのダイナミズムをより高めることができます。</p>&#182;<!--ADD_TEXT_SEP-->
<p>Attach file: ピクチャ 3.png by blue</p>&#182;<!--ADD_TEXT_SEP-->
<p>ほかのほとんどのオブジェクト指向言語の場合と同様に、Objective-Cのクラスは、いくつかのデータとそのデータに対して操作を行うアクションをカプセル化するための基本的な構成体を提供しています。オブジェクトは、あるクラスの単なる実行時インスタンスであり、そのクラスで宣言されるメンバ変数の固有のインメモリコピーと、クラスのメソッドへのポインタが含まれています。</p>
<p><img src="http://lily.la/modules/iPhone/gate.php?way=ref&amp;_nodos&amp;_noumb&amp;page=word%2FObjective-C%2Fclass&amp;src=%E3%83%94%E3%82%AF%E3%83%81%E3%83%A3%202.png" alt="ピクチャ 2.png" title="ピクチャ 2.png, SIZE:669x311(81.2KB)" width="642" height="298" width="642" height="298" /></p>&#182;<!--ADD_TEXT_SEP-->
<p>Attach file: ピクチャ 2.png by blue</p></dd></dl><hr /><p>ほかのほとんどのオブジェクト指向言語の場合と同様に、Objective-Cのクラスは、いくつかのデータとそのデータに対して操作を行うアクションをカプセル化するための基本的な構成体を提供しています。オブジェクトは、あるクラスの単なる実行時インスタンスであり、そのクラスで宣言されるメンバ変数の固有のインメモリコピーと、クラスのメソッドへのポインタが含まれています。
Objective-Cでのクラスの指定には、2つの別々の要素が必要です。すなわち、インターフェイスと実装です。インターフェイス部分ではクラス宣言を記述し、そのクラスに関連付けられているメンバ変数とメソッドを定義します。実装部分には、クラスのメソッドの実際のコードを記述します。図1に、基本クラスNSObjectから派生したMyClassというクラスを宣言するための構文を示します。</p>
<p>クラス宣言は必ず@interfaceというコンパイラディレクティブから始まり、@endというコンパイラディレクティブで終了します。クラス名の後には（コンマで区切られて）、親クラスの名前が続きます。クラスのメンバ変数は、中括弧（{と}）で区切られたコードブロック内で宣言されます。
メンバ変数ブロックの後には、クラスで宣言されたメソッドのリストが続きます。セミコロンは、各メンバ変数とメソッド宣言の終わりのマークです。</p>
<p><img src="http://lily.la/modules/iPhone/gate.php?way=ref&amp;_nodos&amp;_noumb&amp;page=word%2FObjective-C%2Fclass&amp;src=%E3%83%94%E3%82%AF%E3%83%81%E3%83%A3%202.png" alt="ピクチャ 2.png" title="ピクチャ 2.png, SIZE:669x311(81.2KB)" width="642" height="298" width="642" height="298" /></p>
<p>前述の例のMyClassの実装を示します。クラス宣言と同様、クラス実装は2つのコンパイラディレクティブによって識
別されます。ここでは、@implementationと@endです。これらのディレクティブは、囲まれているメソッドと対応するクラスをコンパイラが関連付けるために必要な、範囲情報となります。したがってメソッドの定義は、コードブロックが含まれること以外は、インターフェイスでの対応する宣言と一致します。</p>
<p><img src="http://lily.la/modules/iPhone/gate.php?way=ref&amp;_nodos&amp;_noumb&amp;page=word%2FObjective-C%2Fclass&amp;src=%E3%83%94%E3%82%AF%E3%83%81%E3%83%A3%203.png" alt="ピクチャ 3.png" title="ピクチャ 3.png, SIZE:672x413(94.7KB)" width="638" height="392" width="638" height="392" /></p>
<p>変数にオブジェクトを格納するときには、必ずポインタ型を使います。Objective-Cでは、オブジェクトを含んだ変数に対する強い型定義と弱い型定義の両方をサポートしています。強く型定義されたポインタには、変数の型宣言にクラス名が含まれます。弱く型定義されたポインタは、代わりにオブジェクトに対して型idを使います。コレクション内のオブジェクトの正確な型が不明な場合があるコレクションクラスなどには、弱く型定義されたポインタが頻繁に使われます。強く型定義された言語を使い慣れている方は、弱く型定義された変数を使うと問題が生じるのではないかと思われるかもしれませんが、弱く型定義された変数は、実際には非常に柔軟性が高く、Objective-Cプログラムのダイナミズムをより高めることができます。</p>

 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?word%2FObjective-C%2Fclass</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?word%2FObjective-C%2FC%E3%81%AE%E3%82%B9%E3%83%BC%E3%83%91%E3%83%BC%E3%82%BB%E3%83%83%E3%83%88">
 <title>word/Objective-C/Cのスーパーセット</title>
 <link>http://lily.la/modules/iPhone/index/word/Objective-C/C%E3%81%AE%E3%82%B9%E3%83%BC%E3%83%91%E3%83%BC%E3%82%BB%E3%83%83%E3%83%88</link>
 <dc:date>2009-05-17T18:20:22+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>Objective-Cは、ANSIバージョンのCプログラミング言語のスーパーセットであり、Cと同じ基本構文をサポートしています。Cコードと同様に、ヘッダファイルとソースファイルを定義して、パブリックな宣言をコードの実装の詳細部分から切り離します。Objective-Cのヘッダファイルは、表1に示すファイル拡張子を使用します。
表1 Objective-Cコードのファイル拡張子
拡張子ソースの種類
.hヘッダファイル。ヘッダファイルには、クラス、型、関数、定数の宣言が含まれます。
.mソースファイ</description>
 <content:encoded><![CDATA[
 <p>Objective-Cは、ANSIバージョンのCプログラミング言語のスーパーセットであり、Cと同じ基本構文をサポートしています。Cコードと同様に、ヘッダファイルとソースファイルを定義して、パブリックな宣言をコードの実装の詳細部分から切り離します。Objective-Cのヘッダファイルは、表1に示すファイル拡張子を使用します。
表1 Objective-Cコードのファイル拡張子</p>
<div><table cellspacing="1" border="0">
<tr><td>拡張子</td><td>ソースの種類</td><td></td></tr>

<tr><td>.h</td><td>ヘッダファイル。ヘッダファイルには、クラス、型、関数、定数の宣言が含まれます。</td><td></td></tr>

<tr><td>.m</td><td>ソースファイル。これはソースファイルに使われる典型的な拡張子であり、Objective-CとCコードの両方を含めることができます。</td><td></td></tr>

<tr><td>.mm</td><td>ソースファイル。この拡張子の付くソースファイルには、Objective-CとCのコード以外に、C++コードを含めることができます。この拡張子は、自分のObjective-Cコードから、C++のクラスや機能を実際に参照する場合にのみ使用する必要があります。</td><td></td></tr>
</table></div>
<p>ソースコードにヘッダファイルをインクルードする必要があるときに、標準の#includeコンパイラディレクティブを使用できますが、Objective-Cにはより優れた方法があります。#importディレクティブは、#includeと同じですが、同じファイルが2回以上はインクルードされないことが保証されています。Objective-Cのサンプルとドキュメントではすべて、#importを使用しており、読者自身のコードにおいてもそのようにするべきです。</p>

 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?word%2FObjective-C%2FC%E3%81%AE%E3%82%B9%E3%83%BC%E3%83%91%E3%83%BC%E3%82%BB%E3%83%83%E3%83%88</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?word%2FObjective-C">
 <title>word/Objective-C</title>
 <link>http://lily.la/modules/iPhone/index/word/Objective-C</link>
 <dc:date>2009-05-17T18:15:24+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>Objective-C言語と構文のより詳細な入門サイトとして、『Objective-C 2.0プログラミング言語』がappleのドキュメントとして用意されています。&amp;#182;Objective-C言語は、高度なオブジェクト指向プログラミングを可能にするために設計された簡単なコンピュータプログラミング言語です。Objective-Cは標準ANSI C言語の拡張であり、クラス、メソッド、およびプロパティを定義するための構文と、クラスの動的拡張を支援する構成体を提供しています。クラスの構文と設計の大</description>
 <content:encoded><![CDATA[
 <dl><dt>Changes</dt><dd><p><span>Objective-C</span>言語と構文のより詳細な入門サイトとして、『<a href="http://developer.apple.com/jp/documentation/Cocoa/Conceptual/ObjectiveC/" title="developer.apple.com/jp/documentation/Cocoa/Conceptual/ObjectiveC/">Objective-C 2.0プログラミング言語</a>』がappleのドキュメントとして用意されています。</p></dd></dl><hr /><p><span>Objective-C</span>言語は、高度なオブジェクト指向プログラミングを可能にするために設計された簡単なコンピュータプログラミング言語です。<span>Objective-C</span>は標準ANSI C言語の拡張であり、クラス、メソッド、およびプロパティを定義するための構文と、クラスの動的拡張を支援する構成体を提供しています。クラスの構文と設計の大部分は、初期のオブジェクト指向言語の1つであるSmalltalkに基づいています。</p>
<p>オブジェクト指向言語でのプログラミングの経験がある場合は、以下の情報は<span>Objective-C</span>の基本構文を学習するうえで役立ちます。カプセル化、継承、ポリモーフィズムなど、従来のオブジェクト指向のコンセプトの多くは、<span>Objective-C</span>にも存在します。いくつか重要な違いはありますが、それらはこの文書で取り上げられており、必要な場合は詳細情報も得られます。</p>
<p>オブジェクト指向言語を使ったプログラミングの経験がない場合は、先に進む前に、関連する概念について少なくとも基本知識が必要です。オブジェクトとオブジェクト指向構成体の使用は、iPhoneアプリケーションの設計の基礎であり、それらがどのように相互作用するかを理解することはアプリケーションの作成に不可欠です。オブジェクト指向コンセプトの概要については、『Object-Oriented Programming with <span>Objective-C</span>』を参照してください。</p>
<p><span>Objective-C</span>言語と構文のより詳細な入門サイトとして、『<a href="http://developer.apple.com/jp/documentation/Cocoa/Conceptual/ObjectiveC/" title="developer.apple.com/jp/documentation/Cocoa/Conceptual/ObjectiveC/">Objective-C 2.0プログラミング言語</a>』がappleのドキュメントとして用意されています。</p>

 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?word%2FObjective-C</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?word%2FInstruments">
 <title>word/Instruments</title>
 <link>http://lily.la/modules/iPhone/index/word/Instruments</link>
 <dc:date>2009-05-17T18:12:52+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>iPhoneアプリケーションでのInstrumentsの使いかたの詳細については、『iPhone OS Programming Guide』の
「Development Environment」を参照してください。Instrumentsの使いかたの詳細については、『Instruments UserGuide』を参照してください。&amp;#182;作成したアプリの動作を分析するツールです。
グラフ形式で、メモリや、ネットワークの状況などを見えるかして、パフォーマンス改善に役立ちます。
自分のソフトウェア</description>
 <content:encoded><![CDATA[
 <dl><dt>Changes</dt><dd><p>iPhoneアプリケーションでの<span>Instruments</span>の使いかたの詳細については、『<a href="http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html" title="developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html">iPhone OS Programming Guide</a>』の
「<a href="http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html" title="developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html">Development Environment</a>」を参照してください。<span>Instruments</span>の使いかたの詳細については、『<a href="http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Introduction/Introduction.html" title="developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Introduction/Introduction.html">Instruments UserGuide</a>』を参照してください。</p></dd></dl><hr /><p>作成したアプリの動作を分析するツールです。
グラフ形式で、メモリや、ネットワークの状況などを見えるかして、パフォーマンス改善に役立ちます。</p>
<p>自分のソフトウェアに最高のユーザ体験をもたらすことができるように、<span>Instruments</span>環境では、iPhoneアプリケーションをシミュレータまたはデバイス上で実行しながら、そのパフォーマンスを分析できます。<span>Instruments</span>は、実行中のアプリケーションからデータを収集し、タイムラインと呼ばれるグラフ表示でそのデータを表現します。アプリケーションのメモリ使用量、ディスクアクティビティ、ネットワークアクティビティ、グラフィックスのパフォーマンスについてのデータを収集できます。タイムラインビューには、各種の情報がすべて並んで表示されるため、ある特定の領域の動作だけでなく、アプリケーション全体の動作を相関させることができます。さらに詳細な情報を得るには、<span>Instruments</span>が収集する詳細なサンプルを表示することもできます。</p>
<p>iPhoneアプリケーションでの<span>Instruments</span>の使いかたの詳細については、『<a href="http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html" title="developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html">iPhone OS Programming Guide</a>』の
「<a href="http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html" title="developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html">Development Environment</a>」を参照してください。<span>Instruments</span>の使いかたの詳細については、『<a href="http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Introduction/Introduction.html" title="developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Introduction/Introduction.html">Instruments UserGuide</a>』を参照してください。</p>

 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?word%2FInstruments</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?word%2FInterface%20Builder">
 <title>word/Interface Builder</title>
 <link>http://lily.la/modules/iPhone/index/word/Interface%20Builder</link>
 <dc:date>2009-05-17T18:07:56+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>Interface Builderは、アプリケーションのユーザインターフェイスを視覚的に組み立てるためのツールです。
Interface Builder を使って、構成済みコンポーネントをドラッグ＆ドロップ操作することにより、アプリケーションのウインドウの組み立てを行います。
コンポーネントには、スイッチ、テキストフィールド、ボタンなど標準のシステムコントロールと、アプリケーションが提供するビューを表すカスタムビューも含まれています。ウインドウの表面にコンポーネントを配置したあと、ドラッグ 操作</description>
 <content:encoded><![CDATA[
 <p><span>Interface Builder</span>は、アプリケーションのユーザインターフェイスを視覚的に組み立てるためのツールです。</p>
<p><span>Interface Builder</span> を使って、構成済みコンポーネントをドラッグ＆ドロップ操作することにより、アプリケーションのウインドウの組み立てを行います。
コンポーネントには、スイッチ、テキストフィールド、ボタンなど標準のシステムコントロールと、アプリケーションが提供するビューを表すカスタムビューも含まれています。ウインドウの表面にコンポーネントを配置したあと、ドラッグ 操作によって位置決めを行い、インスペクタを使って属性を設定し、これらのオブジェクトとコードとの間の関係を確立させることができます。インターフェイスが望みどおりの外見になったら、コンテンツをnibファイルに保存します。
このファイルは、独自のリソースファイル形式です。</p>
<p><span>Interface Builder</span>で作成するnibファイルには、UIKitが実行時にアプリケーション中に同じオブジェクトを再作成するために必要なすべての情報が含まれます。nibファイルをロードすると、このファイルに格納されているすべてのオブジェクトの実行時バージョンが作成され、<span>Interface Builder</span>での設定とまったく同じように設定されます。また、新たに作成したオブジェクトと、アプリケーション内の既存のオブジェクトとの間の接続を確立するために指定した接続情報も使われます。この接続情報により、コードにnibファイルオブジェクトへのポインタが与えられるほか、オブジェクト自身がユーザアクションをコード
に伝えるために必要な情報も与えられます。</p>
<p>全体的には、<span>Interface Builder</span>を使うことによって、アプリケーションのユーザインターフェイス作成の時間は大幅に節約されます。<span>Interface Builder</span>により、インターフェイスを構成するオブジェクトの作成、設定、位置指定に必要なカスタムコードの量は抑えられます。<span>Interface Builder</span>はビジュアルなエディタであるため、自分のインターフェイスが実行時にどのように表示されるかを正確に見ることができます。</p>

 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?word%2FInterface%20Builder</dc:identifier>

</item>
<item rdf:about="http://lily.la/modules/iPhone/index.php?word">
 <title>word</title>
 <link>http://lily.la/modules/iPhone/index/word</link>
 <dc:date>2009-05-17T18:05:33+09:00</dc:date>
 <dc:creator>blue</dc:creator>
 
 <description>iPhone開発に関する用語集です。
&amp;nbsp;
 
 
  
  
  
./
  
  
 
用語一覧    
 word&amp;#8203;/Instruments word&amp;#8203;/Interface Builder word&amp;#8203;/Objective-C word&amp;#8203;/Objective-C&amp;#8203;/Cのスーパーセット word&amp;#8203;/Objective-C&amp;#8203;/class word&amp;#8203;/Xcode
</description>
 <content:encoded><![CDATA[
 <p>iPhone開発に関する用語集です。</p>
<div>&nbsp;</div>

<div>
<h3>用語一覧  <a href="http://lily.la/modules/iPhone/index/word#faf2e12c" title="faf2e12c"><img src="http://lily.la/modules/iPhone/skin/loader.php?src=anchor.png" alt="anchor.png" height="12" width="12" /></a> <a href="http://lily.la/modules/iPhone/?cmd=edit&amp;page=word&amp;paraid=faf2e12c" title="Edit of  word#faf2e12c"><img src="http://lily.la/modules/iPhone/image/paraedit.png" width="9" height="9" alt="Edit" title="Edit of  word#faf2e12c" /> </a></h3>
<ul> <li><span>word</span>/<a href="http://lily.la/modules/iPhone/index/word/Instruments" title="word/Instruments (7h)">Instruments</a></li> <li><span>word</span>/<a href="http://lily.la/modules/iPhone/index/word/Interface%20Builder" title="word/Interface Builder (8h)">Interface Builder</a></li> <li><span>word</span>/<a href="http://lily.la/modules/iPhone/index/word/Objective-C" title="word/Objective-C (7h)">Objective-C</a></li> <li><span>word</span>/<a href="http://lily.la/modules/iPhone/index/word/Objective-C" title="word/Objective-C (7h)">Objective-C</a>/<a href="http://lily.la/modules/iPhone/index/word/Objective-C/C%E3%81%AE%E3%82%B9%E3%83%BC%E3%83%91%E3%83%BC%E3%82%BB%E3%83%83%E3%83%88" title="word/Objective-C/Cのスーパーセット (7h)">Cのスーパーセット</a></li> <li><span>word</span>/<a href="http://lily.la/modules/iPhone/index/word/Objective-C" title="word/Objective-C (7h)">Objective-C</a>/<a href="http://lily.la/modules/iPhone/index/word/Objective-C/class" title="word/Objective-C/class (7h)">class</a></li> <li><span>word</span>/<a href="http://lily.la/modules/iPhone/index/word/Xcode" title="word/Xcode (8h)">Xcode</a></li></ul><!--faf2e12c--></div>


 ]]></content:encoded>
 <dc:identifier>http://lily.la/modules/iPhone/index.php?word</dc:identifier>

</item>

</rdf:RDF>