/** * コンテンツサーバから取得したファイルを元にイメージタグを生成します。 * コンテンツサーバの基底 URI はプロパティファイルで設定して下さい。({@link Mars_MixiMobileApp} クラスの API を参照) * * @param string $filePath 出力する画像のパス。'contentsBaseURI' からの相対パスを指定。 * @param mixed $attributes タグに追加する属性。{@link Mars_HTMLHelper::link()} メソッドを参照。 * @return string 生成したイメージタグを返します。 * @author Naomichi Yamakita <*****@*****.**> */ public function staticImage($filePath, $attributes = array()) { $defaults = array(); $defaults['src'] = $this->_contentsBaseURI . '/' . $filePath; $attributes = parent::constructParameters($attributes, $defaults); $buffer = parent::buildTagAttribute($attributes); return sprintf('<img%s>', $buffer); }