Using Pyrus in your programs: Pyrus's Public API - PHPプロ!マニュアル

PEARマニュアル

- Using Pyrus in your programs: Pyrus's Public API

If you are doing advanced work with Pyrus, it is important to understand how to access its internals through its public API. This guide documents how to perform common tasks such as accessing components of a package.xml, managing installation tasks, and accessing configuration settings.

The section on developing plugins for Pyrus is a good starting point for understanding how to extend Pyrus, this guide is more specific to using the actual classes contained within Pyrus.



Pick Up Q&A

Q
セッションがいいのか、それともデータベースがいいのか教えて下さい。
 このエントリーをはてなブックマークに追加 
A
>ボタンをクリックしたら選んだ商品情報を持っておきたいと思っています。 そのくらいのことならセッションもしくはCookie(期限短め:場合によってはブラウザ閉じるまで)でいいんじゃないですかね。 #わ...

>>続きを読む

一つの目安として、ECサイトの購入情報など絶対に消えてはいけないものはDBに、カートなどの一時的に使用する情報や、ユーザに任意のタイミングで消去されても構わないものはセッションにと使い分けるといいでしょう。

▲解説者:岡本(アシアル株式会社 教育コーディネーター兼 システムエンジニア)