]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Cronish/CronishPlugin.php
Start and EndActionExecute added/fixed/documented
[quix0rs-gnu-social.git] / plugins / Cronish / CronishPlugin.php
index b0c0095542cc39bb796538ef6b5b01dca5339c5a..9ae62dc778c1c00a390487e03c883cd864d0aeed 100644 (file)
@@ -1,26 +1,43 @@
 <?php
+/**
+ * GNU social cronish plugin, to imitate cron actions
+ *
+ * @category  Cron
+ * @package   GNUsocial
+ * @author    Mikael Nordfeldth <mmn@hethane.se>
+ * @copyright 2013 Free Software Foundation, Inc.
+ * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
+ * @link      http://gnu.io/social/
+ */
+
+if (!defined('GNUSOCIAL')) { exit(1); }
 
 class CronishPlugin extends Plugin {
+    public function onCronMinutely()
+    {
+        common_debug('CRON: Running near-minutely cron job!');
+    }
+
     public function onCronHourly()
     {
-        common_debug('CRON: Running hourly cron job!');
+        common_debug('CRON: Running near-hourly cron job!');
     }
 
     public function onCronDaily()
     {
-        common_debug('CRON: Running daily cron job!');
+        common_debug('CRON: Running near-daily cron job!');
     }
 
     public function onCronWeekly()
     {
-        common_debug('CRON: Running weekly cron job!');
+        common_debug('CRON: Running near-weekly cron job!');
     }
 
     /**
      * When the page has finished rendering, let's do some cron jobs
      * if we have the time.
      */
-    public function onEndActionExecute($status, Action $action)
+    public function onEndActionExecute(Action $action)
     {
         $cron = new Cronish(); 
         $cron->callTimedEvents();
@@ -36,7 +53,7 @@ class CronishPlugin extends Plugin {
                             'homepage' => 'http://www.gnu.org/software/social/',
                             'description' =>
                             // TRANS: Plugin description.
-                            _m('Cronish plugin that executes events on a near-hour/day/week basis.'));
+                            _m('Cronish plugin that executes events on a near-minutely/hour/day/week basis.'));
         return true;
     }
 }