Skip to content
Browse files

Renamed old_scope attribute to oldScope

  • Loading branch information...
1 parent 07ff600 commit 9df7198cafb3bc48be6e5ab3bf8e61541c18e26e @rozwell rozwell committed May 12, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 generator/lib/behavior/sortable/SortableBehaviorObjectBuilderModifier.php
View
6 generator/lib/behavior/sortable/SortableBehaviorObjectBuilderModifier.php
@@ -91,7 +91,7 @@ public function preUpdate($builder)
return "// if scope has changed and rank was not modified (if yes, assuming superior action)
// insert object to the end of new scope and cleanup old one
if (\$this->isColumnModified({$this->peerClassname}::SCOPE_COL) && !\$this->isColumnModified({$this->peerClassname}::SORTABLE_RANK)) {
- {$this->peerClassname}::shiftRank(-1, \$this->getSortableRank() + 1, null, \$this->old_scope, \$con);
+ {$this->peerClassname}::shiftRank(-1, \$this->getSortableRank() + 1, null, \$this->oldScope, \$con);
\$this->insertAtBottom(\$con);
}
";
@@ -123,7 +123,7 @@ public function objectAttributes($builder)
* The old scope value.
* @var int
*/
-protected \$old_scope;
+protected \$oldScope;
";
}
@@ -167,7 +167,7 @@ public function objectFilter(&$script, $builder)
$search = "if (\$this->{$this->getColumnAttribute('scope_column')} !== \$v) {";
$replace = $search . "
// sortable behavior
- \$this->old_scope = \$this->{$this->getColumnGetter('scope_column')}();
+ \$this->oldScope = \$this->{$this->getColumnGetter('scope_column')}();
";
$script = str_replace($search, $replace, $script);
}

0 comments on commit 9df7198

Please sign in to comment.
Something went wrong with that request. Please try again.