- added $helperInstance and getter/setter from framework as it was monolithic there
- updated core framework
Signed-off-by: Roland Häder <roland@mxchange.org>
use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
use Org\Mxchange\CoreFramework\Generic\NullPointerException;
+use Org\Mxchange\CoreFramework\Helper\Helper;
use Org\Mxchange\CoreFramework\Registry\Registerable;
use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
use Org\Mxchange\CoreFramework\Socket\NoSocketErrorDetectedException;
*/
private $socketResource = false;
+ /**
+ * A helper instance for the form
+ */
+ private $helperInstance = NULL;
+
/**
* Protected constructor
*
return $this->socketResource;
}
+ /**
+ * Setter for helper instance
+ *
+ * @param $helperInstance An instance of a helper class
+ * @return void
+ */
+ protected final function setHelperInstance (Helper $helperInstance) {
+ $this->helperInstance = $helperInstance;
+ }
+
+ /**
+ * Getter for helper instance
+ *
+ * @return $helperInstance An instance of a helper class
+ */
+ public final function getHelperInstance () {
+ return $this->helperInstance;
+ }
+
}
// Import application-specific stuff
use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+// Import framework-specific stuff
+use Org\Mxchange\CoreFramework\Helper\Helper;
+
/**
* A general Info class
*
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
abstract class BaseInfo extends BaseHubSystem {
+ /**
+ * A helper instance for the form
+ */
+ private $helperInstance = NULL;
+
/**
* Protected constructor
*
parent::__construct($className);
}
+ /**
+ * Setter for helper instance
+ *
+ * @param $helperInstance An instance of a helper class
+ * @return void
+ */
+ protected final function setHelperInstance (Helper $helperInstance) {
+ $this->helperInstance = $helperInstance;
+ }
+
+ /**
+ * Getter for helper instance
+ *
+ * @return $helperInstance An instance of a helper class
+ */
+ public final function getHelperInstance () {
+ return $this->helperInstance;
+ }
+
}
use Org\Shipsimu\Hub\Producer\Cruncher\BaseCruncherProducer;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Helper\Helper;
use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
/**
*/
private $templateInstance = NULL;
+ /**
+ * A helper instance for the form
+ */
+ private $helperInstance = NULL;
+
/**
* Protected constructor
*
return $this->templateInstance;
}
+ /**
+ * Setter for helper instance
+ *
+ * @param $helperInstance An instance of a helper class
+ * @return void
+ */
+ protected final function setHelperInstance (Helper $helperInstance) {
+ $this->helperInstance = $helperInstance;
+ }
+
+ /**
+ * Getter for helper instance
+ *
+ * @return $helperInstance An instance of a helper class
+ */
+ public final function getHelperInstance () {
+ return $this->helperInstance;
+ }
+
}
-Subproject commit 5c227d3d4b639d9e5141bb218c414eb877250cf4
+Subproject commit 28ff0710d8eb3a2d0c1547d6ebeaae05eb50c7f6