original_string: public function login($loginDuration = 0)
      {
          $loginStatus = Yii::$app->getUser()->login($this, $loginDuration);
          if ($loginStatus) {
              $this->trigger(User::EVENT_LOGIN);
          }
          return $loginStatus;
      }
code: public function login($loginDuration = 0)
      {
          $loginStatus = Yii::$app->getUser()->login($this, $loginDuration);
          if ($loginStatus) {
              $this->trigger(User::EVENT_LOGIN);
          }
          return $loginStatus;
      }
code_tokens: public function login ( $ loginDuration = 0 ) { $ loginStatus = Yii :: $ app -> getUser ( ) -> login ( $ this , $ loginDuration ) ; if ( $ loginStatus ) { $ this -> trigger ( User :: EVENT_LOGIN ) ; } return $ loginStatus ; }
docstring: Login user.
  @param integer $loginDuration
  @return bool true if success
docstring_tokens: Login user .