Skip to content

Commit

Permalink
Fix access not being specified on certain methods in Helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
predominant committed Apr 5, 2010
1 parent 34077c9 commit 57b52cf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cake/libs/view/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ class Helper extends Overloadable {
*
*/
protected function get__($name) {}
function set__($name, $value) {}
function call__($method, $params) {
protected function set__($name, $value) {}
protected function call__($method, $params) {
trigger_error(sprintf(__('Method %1$s::%2$s does not exist', true), get_class($this), $method), E_USER_WARNING);
}

Expand Down Expand Up @@ -548,7 +548,7 @@ public function field() {
* @param integer $modelID Unique index identifying this record within the form
* @return boolean True on errors.
*/
function tagIsInvalid($model = null, $field = null, $modelID = null) {
public function tagIsInvalid($model = null, $field = null, $modelID = null) {
$view =& ClassRegistry::getObject('view');
$errors = $this->validationErrors;
$entity = $view->entity();
Expand All @@ -568,7 +568,7 @@ function tagIsInvalid($model = null, $field = null, $modelID = null) {
* was supplied, a string will be returned.
* @todo Refactor this method to not have as many input/output options.
*/
function domId($options = null, $id = 'id') {
public function domId($options = null, $id = 'id') {
$view =& ClassRegistry::getObject('view');

if (is_array($options) && array_key_exists($id, $options) && $options[$id] === null) {
Expand Down Expand Up @@ -604,7 +604,7 @@ function domId($options = null, $id = 'id') {
* @access protected
* @todo Refactor this method to not have as many input/output options.
*/
function _name($options = array(), $field = null, $key = 'name') {
protected function _name($options = array(), $field = null, $key = 'name') {
$view =& ClassRegistry::getObject('view');
if ($options === null) {
$options = array();
Expand Down Expand Up @@ -650,7 +650,7 @@ function _name($options = array(), $field = null, $key = 'name') {
* @access public
* @todo Refactor this method to not have as many input/output options.
*/
function value($options = array(), $field = null, $key = 'value') {
public function value($options = array(), $field = null, $key = 'value') {
if ($options === null) {
$options = array();
} elseif (is_string($options)) {
Expand Down Expand Up @@ -754,7 +754,7 @@ public function addClass($options = array(), $class = null, $key = 'class') {
* @return string
* @deprecated This method will be removed in future versions.
*/
function output($str) {
public function output($str) {
return $str;
}

Expand Down

0 comments on commit 57b52cf

Please sign in to comment.