Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

293
 
325
 
325
 
services.php
_> 11 <?php
  22 /*
<> 3 -  $Id: services.php 293 2005-11-29 17:34:26Z hpdl $
   3+  $Id: services.php 325 2005-12-05 03:28:21Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
1212 
  1313   class osC_Services {
  1414     var $services,
<> 15 -        $started_services;
   15+        $started_services,
   16+        $call_before_page_content = array(),
   17+        $call_after_page_content = array();
1618 
  1719     function osC_Services() {
  1820       $this->services = explode(';', MODULE_SERVICES_INSTALLED);
     
 !
5961     function isStarted($service) {
  6062       return in_array($service, $this->started_services);
  6163     }
<>  64+
   65+    function addCallBeforePageContent($object, $method) {
   66+      $this->call_before_page_content[] = array($object, $method);
   67+    }
   68+
   69+    function addCallAfterPageContent($object, $method) {
   70+      $this->call_after_page_content[] = array($object, $method);
   71+    }
   72+
   73+    function hasBeforePageContentCalls() {
   74+      return !empty($this->call_before_page_content);
   75+    }
   76+
   77+    function hasAfterPageContentCalls() {
   78+      return !empty($this->call_after_page_content);
   79+    }
   80+
   81+    function getCallBeforePageContent() {
   82+      return $this->call_before_page_content;
   83+    }
   84+
   85+    function getCallAfterPageContent() {
   86+      return $this->call_after_page_content;
   87+    }
<_ 6288   }
  6389 ?>