Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

151
 
368
 
368
 
services.php
_> 11 <?php
  22 /*
<> 3 -  $Id: services.php 151 2005-08-02 14:33:25Z mattice $
   3+  $Id: services.php 368 2005-12-22 16:27:23Z 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);
     
 !
4446     }
  4547 
  4648     function startService($service) {
<> 47 -      include('includes/modules/services/' . $service . '.php');
   49+      include('includes/services/' . $service . '.php');
4850 
  4951       if (@call_user_func(array('osC_Services_' . $service, 'start'))) {
  5052         $this->started_services[] = $service;
     
 !
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 ?>