Revision: 18498
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18498
Author: skwashd
Date: 2008-03-10 22:21:21 +0000 (Mon, 10 Mar 2008)
Log Message:
-----------
php5 oop updates
Modified Paths:
--------------
trunk/phpgwapi/inc/class.hooks.inc.php
Modified: trunk/phpgwapi/inc/class.hooks.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.hooks.inc.php 2008-03-09 18:19:04 UTC (rev
18497)
+++ trunk/phpgwapi/inc/class.hooks.inc.php 2008-03-10 22:21:21 UTC (rev
18498)
@@ -18,9 +18,9 @@
class phpgwapi_hooks
{
var $found_hooks = Array();
- var $db = null;
+ private $db = null;
- function __construct($db = null)
+ public function __construct($db = null)
{
$this->db = !is_null($db) ? $db :
$GLOBALS['phpgw']->db; // this is to allow setup to set the db
$this->read();
@@ -36,9 +36,7 @@
{
$this->found_hooks[$this->db->f('hook_appname')][$this->db->f('hook_location')]
= $this->db->f('hook_filename');
}
- //echo '<pre>';
- //print_r($this->found_hooks);
- //echo '</pre>';
+ //echo '<pre>' . print_r($this->found_hooks, true) .
'</pre>';
return $this->found_hooks;
}
_______________________________________________
phpGroupWare-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-cvs