| @@ 869-880 (lines=12) @@ | ||
| 866 | } |
|
| 867 | ||
| 868 | // json array : {"0":"index","1":"play","2":"result","3":"bounce"} |
|
| 869 | public function getStepsArray() |
|
| 870 | { |
|
| 871 | $steps = null; |
|
| 872 | ||
| 873 | if ($this->getSteps()) { |
|
| 874 | $steps = json_decode($this->getSteps(), true); |
|
| 875 | } |
|
| 876 | if (!$steps) { |
|
| 877 | $steps = array('index','play','result','bounce'); |
|
| 878 | } |
|
| 879 | return $steps; |
|
| 880 | } |
|
| 881 | ||
| 882 | ||
| 883 | ||
| @@ 884-896 (lines=13) @@ | ||
| 881 | ||
| 882 | ||
| 883 | ||
| 884 | public function getStepsViewsArray() |
|
| 885 | { |
|
| 886 | $viewSteps = null; |
|
| 887 | ||
| 888 | if ($this->getStepsViews()) { |
|
| 889 | $viewSteps = json_decode($this->getStepsViews(), true); |
|
| 890 | } |
|
| 891 | if (!$viewSteps) { |
|
| 892 | $viewSteps = array('index','play','result','bounce'); |
|
| 893 | } |
|
| 894 | ||
| 895 | return $viewSteps; |
|
| 896 | } |
|
| 897 | ||
| 898 | public function getSteps() |
|
| 899 | { |
|