console/controllers/UserController.php
public function actionShow($user, $guid = false, $passHash = false, $accessToken = false, $authKey = false)
    {
        $user = $this->getUser($user);
        echo Yii::t('app', 'User') . " (" . $user->getID() . "), " . Yii::t('app', 'registered at') . " (" . $user->getCreatedAt() . ")"
                . ($user->getCreatedAt() == $user->getUpdatedAt() ? "" : ", " . Yii::t('app', 'last updated at') . " (" . $user->getUpdatedAt() . ")") .".\n";
        if ($guid) {
            echo "GUID: " . $user->getGUID() . "\n";
        }
        if ($passHash) {
            echo "Password Hash: " . $user->{$user->passwordHashAttribute} . "\n";
        }
        if ($accessToken) {
            echo "Access Token: " . $user->getAccessToken() . "\n";
        }
        if ($authKey) {
            echo "Authentication Key: " . $user->getAuthKey() . "\n";
        }
        return static::EXIT_CODE_NORMAL;
    }
public function actionShow($user, $guid = false, $passHash = false, $accessToken = false, $authKey = false)
    {
        $user = $this->getUser($user);
        echo Yii::t('app', 'User') . " (" . $user->getID() . "), " . Yii::t('app', 'registered at') . " (" . $user->getCreatedAt() . ")"
                . ($user->getCreatedAt() == $user->getUpdatedAt() ? "" : ", " . Yii::t('app', 'last updated at') . " (" . $user->getUpdatedAt() . ")") .".\n";
        if ($guid) {
            echo "GUID: " . $user->getGUID() . "\n";
        }
        if ($passHash) {
            echo "Password Hash: " . $user->{$user->passwordHashAttribute} . "\n";
        }
        if ($accessToken) {
            echo "Access Token: " . $user->getAccessToken() . "\n";
        }
        if ($authKey) {
            echo "Authentication Key: " . $user->getAuthKey() . "\n";
        }
        return static::EXIT_CODE_NORMAL;
    }
public function actionShow ( $ user , $ guid = false , $ passHash = false , $ accessToken = false , $ authKey = false ) { $ user = $ this -> getUser ( $ user ) ; echo Yii :: t ( 'app' , 'User' ) . " (" . $ user -> getID ( ) . "), " . Yii :: t ( 'app' , 'registered at' ) . " (" . $ user -> getCreatedAt ( ) . ")" . ( $ user -> getCreatedAt ( ) == $ user -> getUpdatedAt ( ) ? "" : ", " . Yii :: t ( 'app' , 'last updated at' ) . " (" . $ user -> getUpdatedAt ( ) . ")" ) . ".\n" ; if ( $ guid ) { echo "GUID: " . $ user -> getGUID ( ) . "\n" ; } if ( $ passHash ) { echo "Password Hash: " . $ user -> { $ user -> passwordHashAttribute } . "\n" ; } if ( $ accessToken ) { echo "Access Token: " . $ user -> getAccessToken ( ) . "\n" ; } if ( $ authKey ) { echo "Authentication Key: " . $ user -> getAuthKey ( ) . "\n" ; } return static :: EXIT_CODE_NORMAL ; }
Show User Information.
@param User|string|integer $user User ID.
@param boolean $guid Show GUID?
@param boolean $passHash Show PasswordH Hash?
@param boolean $accessToken Show Access Token?
@param boolean $authKey Show Authentication Key?
@return int
Show User Information .