public function IsCurrentStep($name)
    {
        if ($this->owner->getAction() === $name) {
            return true;
        } elseif (!$this->owner->getAction() || $this->owner->getAction() === 'index') {
            return $this->actionPos($name) === 0;
        }
        return false;
    }
public function IsCurrentStep($name)
    {
        if ($this->owner->getAction() === $name) {
            return true;
        } elseif (!$this->owner->getAction() || $this->owner->getAction() === 'index') {
            return $this->actionPos($name) === 0;
        }
        return false;
    }
public function IsCurrentStep ( $ name ) { if ( $ this -> owner -> getAction ( ) === $ name ) { return true ; } elseif ( ! $ this -> owner -> getAction ( ) || $ this -> owner -> getAction ( ) === 'index' ) { return $ this -> actionPos ( $ name ) === 0 ; } return false ; }
Check if passed action is the same as the current step
Check if passed action is the same as the current step