當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PluginManager::plugin_subscribe方法代碼示例

本文整理匯總了PHP中PluginManager::plugin_subscribe方法的典型用法代碼示例。如果您正苦於以下問題:PHP PluginManager::plugin_subscribe方法的具體用法?PHP PluginManager::plugin_subscribe怎麽用?PHP PluginManager::plugin_subscribe使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PluginManager的用法示例。


在下文中一共展示了PluginManager::plugin_subscribe方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

/**
 * Created on 09/ago/07
 * @author Claudio Criscione
 * TagontoNET
 ***********************
 * FLICKR PLUGIN
 * MANIFEST FILE
 ***********************
 * 
 **/
/**
 * HERE THE PLUGIN HAS TO SUBSCRIBE TO THE PLUGIN MANAGER 
 */
//TODO  LEGGERE LA DOCUMENTAZIONE ERRORI
PluginManager::plugin_subscribe("YoutubePlugin");
require_once dirname(__FILE__) . "/config.php";
class YoutubePlugin extends TagontoNetPlugin
{
    public function __construct()
    {
        global $PluginConf;
        $this->_UNIQUE_NUMBER = "YOUTU16592182131";
        //Setting name and web address
        $this->_name = $PluginConf[$this->_UNIQUE_NUMBER]['name'];
        $this->_weburl = $PluginConf[$this->_UNIQUE_NUMBER]['weburl'];
        $this->_description = $PluginConf[$this->_UNIQUE_NUMBER]['description'];
        $this->_logo = $PluginConf[$this->_UNIQUE_NUMBER]['logo'];
        $this->_order = $PluginConf[$this->_UNIQUE_NUMBER]['order'];
    }
    public function getServices()
開發者ID:paradoxengine,項目名稱:tagonto,代碼行數:30,代碼來源:manifest.php

示例2: dirname

<?php

/**
 * Created on 19/sep/07
 * @author Claudio Criscione
 * TagontoNET
 **/
/**
 * HERE THE PLUGIN HAS TO SUBSCRIBE TO THE PLUGIN MANAGER 
 */
require_once dirname(__FILE__) . "/config.php";
PluginManager::plugin_subscribe("VinoratiPlugin");
class VinoratiPlugin extends TagontoNetPlugin
{
    private $_username;
    private $_password;
    public function __construct()
    {
        global $PluginConf;
        $this->_UNIQUE_NUMBER = "VINORA32162532";
        $this->_name = $PluginConf[$this->_UNIQUE_NUMBER]['name'];
        $this->_weburl = $PluginConf[$this->_UNIQUE_NUMBER]['weburl'];
        $this->_description = $PluginConf[$this->_UNIQUE_NUMBER]['description'];
        $this->_order = $PluginConf[$this->_UNIQUE_NUMBER]['order'];
    }
    public function getServices()
    {
        return array("Resources");
    }
    public function getResourcesForTag($tag)
    {
開發者ID:paradoxengine,項目名稱:tagonto,代碼行數:31,代碼來源:manifest.php


注:本文中的PluginManager::plugin_subscribe方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。