[pLog-svn] r4940 - in plugins/branches/lifetype-1.2: . ectocustom ectocustom/class/action unported
pwestbro at devel.lifetype.net
pwestbro at devel.lifetype.net
Sat Mar 3 02:09:32 EST 2007
Author: pwestbro
Date: 2007-03-03 02:09:32 -0500 (Sat, 03 Mar 2007)
New Revision: 4940
Added:
plugins/branches/lifetype-1.2/ectocustom/
Removed:
plugins/branches/lifetype-1.2/unported/ectocustom/
Modified:
plugins/branches/lifetype-1.2/ectocustom/class/action/pluginectocustomconfigaction.class.php
plugins/branches/lifetype-1.2/ectocustom/class/action/pluginectocustomupdateconfigaction.class.php
plugins/branches/lifetype-1.2/ectocustom/pluginectocustom.class.php
Log:
Ported the ecto custom tag plugin
Copied: plugins/branches/lifetype-1.2/ectocustom (from rev 4938, plugins/branches/lifetype-1.2/unported/ectocustom)
Modified: plugins/branches/lifetype-1.2/ectocustom/class/action/pluginectocustomconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/ectocustom/class/action/pluginectocustomconfigaction.class.php 2007-03-02 23:40:20 UTC (rev 4938)
+++ plugins/branches/lifetype-1.2/ectocustom/class/action/pluginectocustomconfigaction.class.php 2007-03-03 07:09:32 UTC (rev 4940)
@@ -18,10 +18,10 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
- include_once( PLOG_CLASS_PATH."class/action/admin/blogowneradminaction.class.php" );
+ include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
include_once( PLOG_CLASS_PATH."plugins/ectocustom/class/view/pluginectocustomconfigview.class.php" );
- class PluginEctoCustomConfigAction extends BlogOwnerAdminAction
+ class PluginEctoCustomConfigAction extends AdminAction
{
/**
@@ -30,7 +30,7 @@
*/
function PluginEctoCustomConfigAction( $actionInfo, $request )
{
- $this->BlogOwnerAdminAction( $actionInfo, $request );
+ $this->AdminAction( $actionInfo, $request );
}
/**
Modified: plugins/branches/lifetype-1.2/ectocustom/class/action/pluginectocustomupdateconfigaction.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/ectocustom/class/action/pluginectocustomupdateconfigaction.class.php 2007-03-02 23:40:20 UTC (rev 4938)
+++ plugins/branches/lifetype-1.2/ectocustom/class/action/pluginectocustomupdateconfigaction.class.php 2007-03-03 07:09:32 UTC (rev 4940)
@@ -18,12 +18,12 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
- include_once( PLOG_CLASS_PATH."class/action/admin/blogowneradminaction.class.php" );
+ include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
include_once( PLOG_CLASS_PATH."plugins/ectocustom/class/view/pluginectocustomconfigview.class.php" );
$apiKeyValid = true;
- class PluginEctoCustomUpdateConfigAction extends BlogOwnerAdminAction
+ class PluginEctoCustomUpdateConfigAction extends AdminAction
{
var $_pluginEnabled;
@@ -35,7 +35,7 @@
*/
function PluginEctoCustomUpdateConfigAction( $actionInfo, $request )
{
- $this->BlogOwnerAdminAction( $actionInfo, $request );
+ $this->AdminAction( $actionInfo, $request );
}
function validate()
Modified: plugins/branches/lifetype-1.2/ectocustom/pluginectocustom.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/ectocustom/pluginectocustom.class.php 2007-03-02 23:40:20 UTC (rev 4938)
+++ plugins/branches/lifetype-1.2/ectocustom/pluginectocustom.class.php 2007-03-03 07:09:32 UTC (rev 4940)
@@ -25,25 +25,33 @@
{
var $pluginEnabled;
- function PluginEctoCustom()
+ function PluginEctoCustom( $source = "" )
{
- $this->PluginBase();
+ $this->PluginBase($source);
$this->id = "ectocustom";
$this->desc = "The Ecto Custom plugin inserts the ecto technotati tags into the custom field used by the technorati plugin.";
$this->author = "Paul Westbrook";
$this->locales = Array( "en_UK" );
+ $this->version = "20070302";
- $this->init();
+ if( $source == "admin" )
+ $this->initAdmin();
+ else
+ $this->init();
}
- function init()
- {
-
+ function init()
+ {
// register the events we want
$this->registerNotification( EVENT_PRE_POST_ADD );
$this->registerNotification( EVENT_PRE_POST_UPDATE );
+ }
+ function initAdmin()
+ {
+ $this->init();
+
$this->registerAdminAction( "ectocustom", "PluginEctoCustomConfigAction" );
$this->registerAdminAction( "updateEctoCustomConfig", "PluginEctoCustomUpdateConfigAction" );
@@ -200,5 +208,13 @@
return $post;
}
+
+ function getPluginConfigurationKeys()
+ {
+ return( Array(
+ Array( "name" => "plugin_ectocustom_enabled", "type" => "boolean" ),
+ ));
+ }
+
}
?>
\ No newline at end of file
More information about the pLog-svn
mailing list