Skip to content

Commit af0313d

Browse files
committed
private -> protected
1 parent a21ae77 commit af0313d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Controller/Component/RingComponent.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function bindDown($modelName = null) {
126126
* @param int $i
127127
* @access protected
128128
*/
129-
private function _bindUp(Model $model, &$data, $i = null) {
129+
protected function _bindUp(Model $model, &$data, $i = null) {
130130
$bindFields = Set::combine($model->bindFields, '/field' , '/');
131131

132132
foreach ($data as $fieldName => $value) {
@@ -180,7 +180,7 @@ private function _bindUp(Model $model, &$data, $i = null) {
180180
* @param int $i
181181
* @access protected
182182
*/
183-
private function _bindDown(Model $model, $data, $i = null) {
183+
protected function _bindDown(Model $model, $data, $i = null) {
184184
$sessionKey = is_int($i) ? self::$sessionKey . ".{$model->alias}.{$i}." : self::$sessionKey . ".{$model->alias}.";
185185

186186
foreach ($data as $fieldName => $value) {
@@ -211,7 +211,7 @@ private function _bindDown(Model $model, $data, $i = null) {
211211
* @access Model
212212
* @access protected
213213
*/
214-
private function &_getModel($modelName) {
214+
protected function &_getModel($modelName) {
215215
$model = null;
216216

217217
if (!empty($this->controller->{$modelName})) {
@@ -234,7 +234,7 @@ private function &_getModel($modelName) {
234234
* @return bool
235235
* @access protected
236236
*/
237-
private function _checkFileUploaded($array) {
237+
protected function _checkFileUploaded($array) {
238238
if (!is_array($array)) {
239239
return false;
240240
}
@@ -249,7 +249,7 @@ private function _checkFileUploaded($array) {
249249
* @param $array The array of bind-upped data
250250
* @return bool
251251
*/
252-
private function _checkBindUpped($array) {
252+
protected function _checkBindUpped($array) {
253253
if (!is_array($array)) {
254254
return false;
255255
}
@@ -266,7 +266,7 @@ private function _checkBindUpped($array) {
266266
* @return bool
267267
* @access protected
268268
*/
269-
private function _checkKeyExists($array, $keys) {
269+
protected function _checkKeyExists($array, $keys) {
270270
$diff = array_intersect_key(Set::normalize($keys), $array);
271271

272272
if (count($keys) !== count($diff)) {

0 commit comments

Comments
 (0)