Skip to content

Commit

Permalink
Changed private member variables and helper functions to protected
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogartPint committed Nov 3, 2016
1 parent a9b4181 commit 02e4966
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/zc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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]);
Expand All @@ -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
Expand Down

0 comments on commit 02e4966

Please sign in to comment.