From 3fd2b0e1ac44053dc0673fef872f6b701342d998 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Mon, 4 Jan 2010 17:53:53 +0000 Subject: [PATCH] Petr's review: private member variables do not have underscore prefix --- mod/workshop/locallib.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mod/workshop/locallib.php b/mod/workshop/locallib.php index 719d807848..e8a86778c3 100644 --- a/mod/workshop/locallib.php +++ b/mod/workshop/locallib.php @@ -50,7 +50,7 @@ class workshop { public $course = null; /** grading strategy instance */ - private $_strategyinstance = null; + private $strategyinstance = null; /** * Initializes the object using the data from DB @@ -491,7 +491,7 @@ class workshop { public function grading_strategy_instance() { global $CFG; // because we require other libs here - if (is_null($this->_strategyinstance)) { + if (is_null($this->strategyinstance)) { $strategylib = dirname(__FILE__) . '/grading/' . $this->strategy . '/strategy.php'; if (is_readable($strategylib)) { require_once($strategylib); @@ -499,12 +499,12 @@ class workshop { throw new moodle_exception('missingstrategy', 'workshop'); } $classname = 'workshop_' . $this->strategy . '_strategy'; - $this->_strategyinstance = new $classname($this); - if (!in_array('workshop_strategy', class_implements($this->_strategyinstance))) { + $this->strategyinstance = new $classname($this); + if (!in_array('workshop_strategy', class_implements($this->strategyinstance))) { throw new moodle_exception('strategynotimplemented', 'workshop'); } } - return $this->_strategyinstance; + return $this->strategyinstance; } /** -- 2.39.5