本文整理汇总了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()
示例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)
{