Browse files

Renaming the property $states to $groups.

I think $states was ambiguos in the context of the StateManager.
  • Loading branch information...
1 parent 146e4b8 commit f3c9254ac5201a0c68c100ea8aadf3e6cb49d33f @dantenetto committed Apr 5, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 state/StateManager.php
View
6 state/StateManager.php
@@ -14,15 +14,15 @@ class StateManager extends CBehavior
* @var boolen
*/
public $isSingletonGroup = false;
- public $states;
+ public $groups;
protected $stateGroups = array();
public function attach($owner)
{
parent::attach($owner);
- foreach ($this->states as $groupName => $stateGroupConfig)
+ foreach ($this->groups as $groupName => $stateGroupConfig)
{
$stateGroupConfig['stateManager'] = $this;
$stateGroupConfig['groupId'] = $groupName;
@@ -46,7 +46,7 @@ public function attach($owner)
public function getStateGroupByAttr($attr)
{
- foreach ($this->states as $groupName => $stateGroupConfig)
+ foreach ($this->groups as $groupName => $stateGroupConfig)
{
if (isset($stateGroupConfig['attr']) && ($stateGroupConfig['attr'] === $attr))
{

0 comments on commit f3c9254

Please sign in to comment.