Permalink
Browse files

Update View/Helper/WizardHelper.php

Added visibility keywords
  • Loading branch information...
1 parent e4029fc commit 1c34870130717a4aa39c50a0e1a557a9df9fddb3 @destinydriven destinydriven committed Jul 25, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 View/Helper/WizardHelper.php
View
16 View/Helper/WizardHelper.php
@@ -15,15 +15,15 @@
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
class WizardHelper extends AppHelper {
- var $helpers = array('Session','Html','Form');
- var $output = null;
+ public $helpers = array('Session','Html','Form');
+ public $output = null;
/**
* undocumented function
*
* @param string $key optional key to retrieve the existing value
* @return mixed data at config key (if key is passed)
*/
- function config($key = null) {
+ public function config($key = null) {
if ($key == null) {
return $this->Session->read('Wizard.config');
} else {
@@ -45,7 +45,7 @@ function config($key = null) {
* @param string $escapeTitle
* @return string link to a specific step
*/
- function link($title, $step = null, $htmlAttributes = array(), $confirmMessage = false, $escapeTitle = true) {
+ public function link($title, $step = null, $htmlAttributes = array(), $confirmMessage = false, $escapeTitle = true) {
if ($step == null) {
$step = $title;
}
@@ -60,7 +60,7 @@ function link($title, $step = null, $htmlAttributes = array(), $confirmMessage =
* @param string $shiftIndex optional offset of returned array index. Default 1
* @return string step number. Returns false if not found
*/
- function stepNumber($step = null, $shiftIndex = 1) {
+ public function stepNumber($step = null, $shiftIndex = 1) {
if ($step == null) {
$step = $this->config('activeStep');
}
@@ -74,7 +74,7 @@ function stepNumber($step = null, $shiftIndex = 1) {
}
}
- function stepTotal()
+ public function stepTotal()
{
$steps = $this->config('steps');
return count($steps);
@@ -90,7 +90,7 @@ function stepTotal()
* @param string $escapeTitle
* @return string
*/
- function progressMenu($titles = array(), $attributes = array(), $htmlAttributes = array(), $confirmMessage = false, $escapeTitle = true) {
+ public function progressMenu($titles = array(), $attributes = array(), $htmlAttributes = array(), $confirmMessage = false, $escapeTitle = true) {
$wizardConfig = $this->config();
extract($wizardConfig);
$wizardAction = $this->config('wizardAction');
@@ -128,7 +128,7 @@ function progressMenu($titles = array(), $attributes = array(), $htmlAttributes
* @param array $options
* @return string
*/
- function create($model = null, $options = array()) {
+ public function create($model = null, $options = array()) {
if (!isset($options['url']) || !in_array($this->params['pass'][0], $options['url']))
$options['url'][] = $this->params['pass'][0];
return $this->Form->create($model, $options);

0 comments on commit 1c34870

Please sign in to comment.