7 * LICENSE: This source file is licensed under the terms of the GNU General Public License.
9 * @package Magic3 Framework
10 * @author 平田直毅(Naoki Hirata) <naoki@aplo.co.jp>
11 * @copyright Copyright 2006-2012 Magic3 Project.
12 * @license http://www.gnu.org/copyleft/gpl.html GPL License
13 * @version SVN: $Id: reg_userBaseWidgetContainer.php 5221 2012-09-18 13:00:52Z fishbone $
14 * @link http://www.magic3.org
16 require_once($gEnvManager->getContainerPath() . '/baseWidgetContainer.php');
18 class reg_userBaseWidgetContainer extends BaseWidgetContainer
20 protected $_userId; // 現在のユーザ
21 const CSS_FILE = '/style.css'; // CSSファイルのパス
22 const EMAIL_LOGIN_URL = '&task=emaillogin&account=%s&pwd=%s'; // Eメールからのログイン用URL
24 const TASK_PROFILE = 'profile'; // プロフィール画面
29 function __construct()
32 parent::__construct();
34 $this->_userId = $this->gEnv->getCurrentUserId();
39 * CSSファイルをHTMLのheadタグ内に追加出力する。
40 * _assign()よりも後に実行される。
42 * @param RequestManager $request HTTPリクエスト処理クラス
43 * @param object $param 任意使用パラメータ。
44 * @return string CSS文字列。出力しない場合は空文字列を設定。
46 function _addCssFileToHead($request, &$param)
48 return $this->getUrl($this->gEnv->getCurrentWidgetCssUrl() . self::CSS_FILE);
53 * @return string 送信元アドレス
55 function getFromAddress()
57 $address = $this->gEnv->getSiteEmail();// サイトのメールアドレス