kernel/user/ezuseroperationcollection.php
static public function forgotpassword( $userID, $passwordHash, $time )
    {
        $user = eZUser::fetch( $userID );

        if ( $user instanceof eZUser )
        {
            $forgotPasswdObj = eZForgotPassword::createNew( $userID, $passwordHash, $time );
            $forgotPasswdObj->store();
            return array( 'status' => true );
        }
        else
        {
            eZDebug::writeError( "Failed to generate password hash for user $userID (could not fetch user)", __METHOD__ );
            return array( 'status' => false );
        }
    }
static public function forgotpassword( $userID, $passwordHash, $time )
    {
        $user = eZUser::fetch( $userID );

        if ( $user instanceof eZUser )
        {
            $forgotPasswdObj = eZForgotPassword::createNew( $userID, $passwordHash, $time );
            $forgotPasswdObj->store();
            return array( 'status' => true );
        }
        else
        {
            eZDebug::writeError( "Failed to generate password hash for user $userID (could not fetch user)", __METHOD__ );
            return array( 'status' => false );
        }
    }
static public function forgotpassword ( $ userID , $ passwordHash , $ time ) { $ user = eZUser :: fetch ( $ userID ) ; if ( $ user instanceof eZUser ) { $ forgotPasswdObj = eZForgotPassword :: createNew ( $ userID , $ passwordHash , $ time ) ; $ forgotPasswdObj -> store ( ) ; return array ( 'status' => true ) ; } else { eZDebug :: writeError ( "Failed to generate password hash for user $userID (could not fetch user)" , __METHOD__ ) ; return array ( 'status' => false ) ; } }
Generate forgotpassword object

@param int $userID
@param string $passwordHash
@param int $time

@return array An array with operation status, always true if userID is ok
Generate forgotpassword object