diff --git a/includes/handlers.inc b/includes/handlers.inc index 483167b..0c47a1d 100644 --- a/includes/handlers.inc +++ b/includes/handlers.inc @@ -514,7 +514,7 @@ class views_many_to_one_helper { $this->handler = &$handler; } - function option_definition(&$options) { + public static function option_definition(&$options) { $options['reduce_duplicates'] = array('default' => FALSE); } diff --git a/includes/view.inc b/includes/view.inc index 9c29efe..00d625f 100644 --- a/includes/view.inc +++ b/includes/view.inc @@ -57,7 +57,7 @@ class view extends views_db_object { * @var string */ var $current_display; - + /** * Constructor */ @@ -86,7 +86,7 @@ class view extends views_db_object { * Note: In PHP5 this should be static, but PHP4 doesn't support static * methods. */ - function db_objects() { + public static function db_objects() { return array('display'); } @@ -1324,7 +1324,7 @@ class view extends views_db_object { * If TRUE, reset this entry in the load cache. * @return A view object or NULL if it was not available. */ - function &load($arg, $reset = FALSE) { + public static function &load($arg, $reset = FALSE) { static $cache = array(); // We want a NULL value to return TRUE here, so we can't use isset() or empty(). @@ -1377,7 +1377,7 @@ class view extends views_db_object { * that would be very slow. Buiding the views externally from unified queries is * much faster. */ - function load_views() { + public static function load_views() { $result = db_query("SELECT DISTINCT v.* FROM {views_view} v"); $views = array(); $vids = array();