protected function isValueDisabled($value)
	{
		$disabled = $this->disabled;
		if (is_array($disabled)) {
			return isset($disabled[ $value ]) && $disabled[ $value ];
		}
		elseif (!is_bool($disabled)) {
			return $disabled == $value;
		}

		return FALSE;
	}
protected function isValueDisabled($value)
	{
		$disabled = $this->disabled;
		if (is_array($disabled)) {
			return isset($disabled[ $value ]) && $disabled[ $value ];
		}
		elseif (!is_bool($disabled)) {
			return $disabled == $value;
		}

		return FALSE;
	}
protected function isValueDisabled ( $ value ) { $ disabled = $ this -> disabled ; if ( is_array ( $ disabled ) ) { return isset ( $ disabled [ $ value ] ) && $ disabled [ $ value ] ; } elseif ( ! is_bool ( $ disabled ) ) { return $ disabled == $ value ; } return FALSE ; }
Check if a specific value is disabled. If whole control is disabled, returns false.
@param $value mixed value to check for
@return bool
Check if a specific value is disabled . If whole control is disabled returns false .