本文整理匯總了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)
{