<?php
/* SVN FILE: $Id: rkt_plugin.php 456 2008-05-22 09:24:51Z bb_yujiro $ */
/**
 * Pluginクラス
 *
 * PHP versions 5
 *
 *      hitSuji : Social Network Service <http://rakuto.net/rktSNS/>
 *      Copyright (c) 2007 Yujiro Takahashi
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @package         hitSuji
 * @copyright       Copyright (c) 2007 Yujiro Takahashi
 * @link            http://rakuto.net/
 * @author          Yujiro Takahashi <yujiro@rakuto.net>
 * @version         $Revision: 456 $
 * @modifiedby      $LastChangedBy: bb_yujiro $
 * @lastmodified    $Date: 2008-05-22 18:24:51 +0900 (木, 22 5 2008) $
 * @license         http://opensource.org/licenses/mit-license.php The MIT License
 */

require PLUGIN_DIR.'config.php';
require LIB_DIR.'rktPlugin/loader.php';

/**
 * Pluginクラス
 *
 * @category        Plugin
 * @package         hitSuji
 * @copyright       Copyright (c) 2008 Yujiro Takahashi
 * @link            http://rakuto.net/
 * @author          Yujiro Takahashi <yujiro@rakuto.net>
 * @version         $Revision: 456 $
 * @modifiedby      $LastChangedBy: bb_yujiro $
 * @lastmodified    $Date: 2008-05-22 18:24:51 +0900 (木, 22 5 2008) $
 * @license         http://opensource.org/licenses/mit-license.php The MIT License
 */
class RKT_plugin
{
    /**
     * 登録済み
     * @var array
     */
    public $registered = null;
    
    /**
     * コンストラクタ
     *
     * @access public
     * @return void
     */
    public function __construct()
    {
    }

    /**
     * リッチエディターボタン追加用JavaScript
     *
     * Example:
     * <code>
     * ?>
     * var imgConfig = {
     *     type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold'
     * };
     * myEditor.toolbar.addButtonToGroup(imgConfig, 'Bold');
     * <?php
     * </code>
     *
     * @access public
     * @return string
     * @link   http://developer.yahoo.com/yui/editor/
     */
    public function editorAddButtonJs()
    {
        return '';
    }

    /**
     * リッチエディター用CSS
     *
     * Example:
     * <code>
     * ?>
     * .yui-skin-sam .yui-toolbar-container .yui-toolbar-insertscript span.yui-toolbar-icon {
     *     background-image: url( <?php e(BASE_URL); ?>resource/img/icons/script_code.gif );
     *     background-position: 1px 0px;
     *     left: 5px;
     * }
     * #insertscript {
     *     border:1px solid #808080;
     *     padding:5px;
     *     background-color: #F2F2F2;
     * }
     * #insertscript a {
     *     display: block;
     *     float: left;
     *     border: 1px solid #F2F2F2;
     * }
     * #insertscript a:hover {
     *     border: 1px solid #808080;
     * }
     * <?php
     * </code>
     *
     * @access public
     * @return string
     * @link   http://developer.yahoo.com/yui/editor/
     */
    public function editorCss()
    {
    }

    /**
     * リッチエディター用JavaScript
     *
     * Example:
     * <code>
     * ?>
     * YAHOO.util.Event.onAvailable('insKao', function() {
     *     YAHOO.util.Event.on('kao', 'click', function(ev) {
     *         myEditor.execCommand('inserthtml', '(+_+)');
     *         YAHOO.util.Event.stopEvent(ev);
     *     }, myEditor, true);
     * });
     * <?php
     * </code>
     *
     * @access public
     * @return void
     * @link   http://developer.yahoo.com/yui/editor/
     */
    public function editorJavaScript()
    {
    }

    /**
     * エディター用HTML BODY出力エフェクト
     *
     * @access public
     * @parmas string $value
     * @return string
     */
    public function outputEditorBody($string)
    {
        return $string;
    }

    /**
     * HTML BODY出力用エフェクト
     *
     * Example:
     * <code>
     * public function outputEditorLoadJs()
     * {
     *     RKT_View::getInstance()->addJavas('yui/element/element-beta-min.js');
     * }
     * </code>
     *
     * @access public
     * @return void
     */
    public function outputEditorLoadJs()
    {
    }

    /**
     * 出力時へのフィルター
     *
     * @access public
     * @parmas string $value
     * @parmas string $mime_type
     * @return string
     */
    public function outputFilter($body, $mime_type)
    {
        return $body;
    }

    /**
     * HTML BODY出力用エフェクト
     *
     * @access public
     * @parmas string $value
     * @return string
     */
    public function outputHtmlBody($string)
    {
        return $string;
    }

    /**
     * 入力値へのフィルター
     *
     * @access public
     * @parmas mixed $value
     * @parmas mixed $type
     *      All Types: 'string','number','date','email','uri'
     * @return mixed
     */
    public function requestFilter($value, $type)
    {
        return $value;
    }

    /**
     * HTML BODY入力用エフェクト
     *
     * @access public
     * @parmas string $value
     * @return string
     */
    public function requestHtmlBody($string)
    {
        return $string;
    }
} // RKT_plugin
?>
