public function pushState($state)
		{
		$r = array_push($this->states, $state);
		$this->state = $this->states[count($this->states) - 1];
		return $r;
		}
public function pushState($state)
		{
		$r = array_push($this->states, $state);
		$this->state = $this->states[count($this->states) - 1];
		return $r;
		}
public function pushState ( $ state ) { $ r = array_push ( $ this -> states , $ state ) ; $ this -> state = $ this -> states [ count ( $ this -> states ) - 1 ] ; return $ r ; }
Adds a new state onto the state stack.

@param integer $state State to add onto the state stack.
@return integer The index of the added state in the state stacks
Adds a new state onto the state stack .