From 02e496683fc87dabe470caaaa6e7103705bb8d95 Mon Sep 17 00:00:00 2001 From: jbogartPint Date: Thu, 3 Nov 2016 14:06:30 -0700 Subject: [PATCH] Changed private member variables and helper functions to protected --- src/zc.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/zc.php b/src/zc.php index 54125db..896dd5e 100644 --- a/src/zc.php +++ b/src/zc.php @@ -5,16 +5,16 @@ class ZC { private $mysqli; - private $chartId = ""; - private $chartType; - private $theme; - private $width; - private $height; - private $fullscreen = false; - private $config; - private $data; - private $fieldNames = array(); - private $xAxisTitle = ""; + protected $chartId = ""; + protected $chartType; + protected $theme; + protected $width; + protected $height; + protected $fullscreen = false; + protected $config; + protected $data; + protected $fieldNames = array(); + protected $xAxisTitle = ""; public function __construct($id, $cType = 'area', $theme = 'light', $width = '100%', $height = '400') { $this->chartId = $id; @@ -361,7 +361,7 @@ public function trapdoor($json) { // ###################################### HELPER FUNCTIONS ###################################### - private function autoAxisTitles($scaleXFlag=false, $xLabels=array()) { + protected function autoAxisTitles($scaleXFlag=false, $xLabels=array()) { if ($scaleXFlag) { $this->setConfig('scale-x.label.text', $this->xAxisTitle); $this->setConfig('scale-y.label.text', $this->fieldNames[0]); @@ -381,7 +381,7 @@ private function autoAxisTitles($scaleXFlag=false, $xLabels=array()) { /** * Process the array with tail recursion. */ - private function buildArray($propertyChain, $value) { + protected function buildArray($propertyChain, $value) { $key = array_shift($propertyChain); // Base case, build the bottom level array