| @@ 881-892 (lines=12) @@ | ||
| 878 | } |
|
| 879 | ||
| 880 | // json array : {"0":"index","1":"play","2":"result","3":"bounce"} |
|
| 881 | public function getStepsArray() |
|
| 882 | { |
|
| 883 | $steps = null; |
|
| 884 | ||
| 885 | if ($this->getSteps()) { |
|
| 886 | $steps = json_decode($this->getSteps(), true); |
|
| 887 | } |
|
| 888 | if (!$steps) { |
|
| 889 | $steps = array('index','play','result','bounce'); |
|
| 890 | } |
|
| 891 | return $steps; |
|
| 892 | } |
|
| 893 | ||
| 894 | ||
| 895 | ||
| @@ 896-908 (lines=13) @@ | ||
| 893 | ||
| 894 | ||
| 895 | ||
| 896 | public function getStepsViewsArray() |
|
| 897 | { |
|
| 898 | $viewSteps = null; |
|
| 899 | ||
| 900 | if ($this->getStepsViews()) { |
|
| 901 | $viewSteps = json_decode($this->getStepsViews(), true); |
|
| 902 | } |
|
| 903 | if (!$viewSteps) { |
|
| 904 | $viewSteps = array('index','play','result','bounce'); |
|
| 905 | } |
|
| 906 | ||
| 907 | return $viewSteps; |
|
| 908 | } |
|
| 909 | ||
| 910 | public function getSteps() |
|
| 911 | { |
|