Quick Search:

View

Revision:

Diff

Diff from 1860 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/trunk/oscommerce/includes/classes/actions.php

Annotated File View

hpdl
802
1 <?php
2 /*
3   $Id: $
4
5   osCommerce, Open Source E-Commerce Solutions
6   http://www.oscommerce.com
7
hpdl
1860
8   Copyright (c) 2007 osCommerce
hpdl
802
9
hpdl
1498
10   This program is free software; you can redistribute it and/or modify
11   it under the terms of the GNU General Public License v2 (1991)
12   as published by the Free Software Foundation.
hpdl
802
13 */
14
hpdl
1860
15 /**
16  * The osC_Actions class loads action modules to execute specific tasks
17  */
18
hpdl
802
19   class osC_Actions {
20
hpdl
1860
21 /**
22  * Loads the action module to execute
23  *
24  * @param string $module The name of the module to execute
25  * @access public
26  */
hpdl
802
27
hpdl
1860
28     public static function parse($module) {
29       $module = basename($module);
30
31       if ( !empty($module) && file_exists('includes/modules/actions/' . $module . '.php') ) {
32         include('includes/modules/actions/' . $module . '.php');
33
34         call_user_func(array('osC_Actions_' . $module, 'execute'));
hpdl
802
35       }
36     }
37   }
38 ?>